Here is the solution that worked for us. Not the best but maybe one can benefit.
Background:
- Our scripts were developed with VS 2013 and used NUnit VS Adapter 2.1..
- Recently we migrated to VS 2017 and when open the same solution - test wouldn't show in the Test Explorer
Upon Build we would see this message:
[Informational] NUnit Adapter 3.10.0.21: Test discovery starting
[Informational] Assembly contains no NUnit 3.0 tests: C:\ihealautomatedTests\SeleniumTest\bin\x86\Debug\SeleniumTest.dll
[Informational] NUnit Adapter 3.10.0.21: Test discovery complete
Solution (temporary):
- Uninstall NUnit Adapter 3.10...
- Install NUnit VS Adapter 2.1..
Now the Tests are shown.