Reputation: 36649
I inherited an assembly with MSTest, but these tests were run using nunit-console on the build machine (not sure how it worked). So I decided to sort it out and change them to proper NUnit tests, but now nunit-console (or gui) can't find any tests. They run just fine using ReSharper test runner though. Any idea what could be missing?
Upvotes: 3
Views: 6280
Reputation: 36649
Thanks for help, everyone. Upgrading to the latest NUnit framework fixed the problem (all the obvious things you suggested were OK).
Frederik Gheysels, you can try that as well I guess.
Upvotes: 2
Reputation: 1500555
Check:
[TestFixture]
attribute at the class level?[Test]
attribute?I believe some versions of NUnit were able to find tests based on their names, e.g. TestFooBarBaz()
without the [Test]
attribute, but I don't know what the state of this is now - it could explain the discrepancy though.
Upvotes: 12
Reputation: 14865
Are your test fixtures, classes and methods, public? They have to be for NUnit to find them.
Upvotes: 1