Visual Studio 2010 - no tests were run because no tests are loaded or the selected tests are disabled

Viewed 17154

I have a problem which has received plenty of attention which, despite much googling, I have been unable to resolve. I have a Test Project attached to my Visual Studio 2010 MVC 2 Application. When I attempt to run my tests, I get:

"no tests were run because no tests are loaded or the selected tests are disabled."

Following this, I followed the instructions in these posts, to no avail:

Furthermore, the output console reports:

"Could not load file or assembly 'file://\shared\shared\IT\Development\TPS\TPS.Tests\bin\Debug\TPS.Tests.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)"

I have confirmed the build settings on the Test Project are the same as those for the main project (Any CPU targeted).

Therefore, is it a problem accessing the resource over network share? Otherwise, does anyone have a suggestion?

5 Answers

I struggled with this for days, and didn't find the answer (for my situation) anywhere, so though I'd jot down my experience...

So I had the same problem, doing what I thought was local testing on a test project created locally.. (I'm a novice...) but returning the same error mentioned above : /

Anyway it seems that VS2010 had by default placed my project dir within the library folder, which was classified as network, subsequently all files within were 'unavailable offline'.

By moving my project dir to c:// my project files became index-able. (much to my relief!)

Related