using NUnit 2 and 3 in the same solution

445 Views Asked by At

I have 2 test projects in my solution. One is using NUnit version 2 (integration + SpecsFor) and another version 3.(Unit tests)

Running locally this works fine but when I execute the tests as part of a build on TFS I get an error message even though all tests passes. I read here this occurring because VSTestAdapter2 cant run the v3 ones.

Is it not possible to run both version 2 and 3 in the TFS build?

1

There are 1 best solutions below

2
On

The NUnit3TestAdapter compatible with NUnit 2, so you can install NUnit3TestAdapter package to your NUnit test projects.

enter image description here