nunit / nunitv2

NUnit 2.x repository. NUnit V2 IS NO LONGER MAINTAINED OR UPDATED. Bugs should be reported in the main NUnit 3.0 repository.
https://github.com/nunit/nunit
Other
25 stars 26 forks source link

Modified to not attempt to run NUnit v3 tests #2

Closed rprouse closed 9 years ago

rprouse commented 10 years ago

I also updated the version to 2.6.4 in case we release this. The only real changes are in TestAssemblyBuilder.cs where I check if the test assembly references nunit.framework or nunitlite with a version > 2.

There are large formatting changes because tabs got replaced with spaces.

I did not add unit tests because it would require too much setup and a copy of NUnit v3 tests. I tested by attempting to run both v2 and v3 tests and combinations of the both. All work fine, no tests are found in the v3 assemblies.

The only thing I don't like about this is that it silently drops v3 tests. The only way I know to surface the error is through an exception, but that stops the entire test run.

I am pretty sure that if we drop this in the current Visual Studio adapter, it will start correctly ignoring v3 tests. This might warrant another release of the adapter.

CharliePoole commented 9 years ago

Go ahead and merge after you fix the #if.