Reputation: 1157
I have two projects in my solution which contains tests. I have tried clean build of solution but tests from only one project are appearing in the Test Explorer. I have also checked that Test->Test Settings->Default Processor Architecture is matching with that of project build settings (i.e. x86).
Upvotes: 0
Views: 403
Reputation: 9425
By default the Tests window will only show MsTest tests. If you have written your tests in Nunit you will need to install the 'Nunit Test Adapter' Visual studio extension for it to recognize those.
Upvotes: 3
Reputation: 1157
When I set Project build settings to Any CPU it works but for any other settings (even when it matching with Test->Test Settings->Default) it fails to detect the unit tests.
Upvotes: 0
Reputation: 1168
Have you tried "Kristian Kristensen's" answer to a similar question here: How to get VS2010 to recognize my mstests generated by SpecFlow?
It worked for me.
Upvotes: 0