0

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?

Community
  • 1
  • 1
Jepzen
  • 2,942
  • 6
  • 40
  • 62

1 Answers1

1

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

enter image description here

starian chen-MSFT
  • 33,174
  • 2
  • 29
  • 53
  • Locally yes that works(despite that it actually says "use the Nunit 2 adapter for 2.x test..." but on TFS the Nunit2 does not get discovered – Jepzen Jan 26 '17 at 10:01
  • What're steps of your build definition? Can you share a simple projects that can reproduce this issue on the OneDrive? – starian chen-MSFT Jan 26 '17 at 10:06