Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

No tests found since migrating from NUnit to Xunit
qujck
#1 Posted : Thursday, July 24, 2014 1:52:01 PM(UTC)
Rank: Member

Groups: Registered
Joined: 4/19/2014(UTC)
Posts: 17
Location: United Kingdom

Thanks: 9 times
Was thanked: 2 time(s) in 2 post(s)
I have spent the last few hours converting 914 unit tests from NUnit to Xunit (xUnit.net 2.0.0 build 2700) - the solutions compile and TestDriven.NET can run all the tests but NCrunch is reporting that there are no tests.

Am I missing a config setting or something?

Quote:

------ Test started: Assembly: My.System.Tests.Unit.dll ------
697 passed, 0 failed, 0 skipped, took 20.18 seconds (xUnit.net 2.0.0 build 2700).

------ Test started: Assembly: My.Data.Tests.Unit.dll ------
217 passed, 0 failed, 0 skipped, took 4.17 seconds (xUnit.net 2.0.0 build 2700).

========== Total Tests: 914 passed, 0 failed, 0 skipped, took 24.45 seconds ==========




(The 53 ignored tests are MSTests in a separate project.)

Things I've tried

  • re-run the Configuration Wizard
  • disabled and re-enable NCrunch
  • deleted all ncrunchproject and the ncrunchsolution file
Remco
#2 Posted : Thursday, July 24, 2014 9:21:21 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,144

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Hi, thanks for posting!

This is a known issue - see here for more information.

NCrunch v2.8 is being updated to work with the latest beta of xunit (2700), though I believe a new build of xunit isn't far away. Considering the effort you've made to port your tests over, it may be easier to simply switch to a slightly earlier beta of xunit 2 in order to get your test suite working.
1 user thanked Remco for this useful post.
qujck on 7/25/2014(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.039 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download