Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2012 Professional - unit tests not working

After building my application I get in the test output:

------ Discover test started ------

Exception has been thrown by the target of an invocation.

========== Discover test finished: 1 found (0:00:01,457) ==========

I'm using Visual Studio 2012 Professional on win7 32bit.

Tried:

  1. repairing vs2012
  2. reinstalling vs2012
  3. changing configurations
  4. changing path to

    Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll
    

Nothing worked...

Any ideas?

Previously I worked with Visual Studio 2010 Express edition.

Application is correct - I made just simple class library and test project just to be sure it works. And it doesn't. The same project works with my student premium version.

like image 434
masterkawaster Avatar asked Dec 28 '12 08:12

masterkawaster


1 Answers

Ok

I looked again in http://connect.microsoft.com/visualstudio and tried also:

  1. moving project files to another location than default
  2. changing security rights in files and folders properties
  3. run vs as administrator

Nothing really worked until i found by chance vs2012 update 1 (under the "Additional Software" category)

After download and installation everything works fine.

like image 91
masterkawaster Avatar answered Nov 16 '22 03:11

masterkawaster