ReSharper runner for xUnit.net 2.0

by Matt 2. May 2014 05:55

Here’s two nice things to end a Friday with.

Firstly, I’ve just pushed a new, 2.0.0 ALPHA pre-release version of the xUnit.net runner for ReSharper to the extension gallery. It adds support for xUnit.net 2.0 beta 2. You can get it from ReSharper’s Extension Manager. Make sure you select the “pre-release” drop down in the Extension Manager first.

Secondly, the project is no longer hosted on CodePlex, but has moved to GitHub, and lives under the xunit org. All issues and pull requests should go there please.

xUnit.net 2

You should consider this an alpha version, because, well, it is. It works, I’ve got a bunch of tests to prove it, but hey, it’s all new and different, so if you find any issues, please, please, please, let me know (twitter or, even better, GitHub. Did I mention the project’s moved?) In fact, any kind of feedback is appreciated, good or bad.

Thanks to the excellent support built into xunit2 by Brad and Jim, the new runner can handle both your xunit1 and xunit2 tests. Everything works as you’d expect – tests are highlighted in the editor, and you can run and debug them as normal.

However, this is an alpha build. There are couple of important caveats:

  • Parallelisation is DISABLED in this release. This is due to how xunit2 handles errors. Currently, there is no way for me to gracefully handle errors thrown when a class or collection fixture throws an exception. Hopefully this can be resolved, and I’ll enable parallelisation.
  • Test discovery in the editor is currently handled by xunit1. This needs migration, but is a complex beast. It means that currently, anything more interesting than plain Fact or Theory based tests might not work. Test discovery in the runner is handled by xunit2, hence the weasel word “might”. Fixing this is my next priority.
  • It currently only supports 8.2, as this is what I’ve been using to build and test. I’m not sure yet if I’ll add support for 8.1 back. Leave feedback on GitHub if you really want it – but leave a reason, too. After all, 8.2 is a free upgrade!
  • Annotations and live templates haven’t been updated yet, or even tested. They might work, they might not – so your methods might not be highlighted as in use, and the templates might not work (theory definitely won’t – it’s in a different namespace)

Moving to GitHub

I think it’s fair to say that xunitcontrib had a good run on CodePlex, but, well, GitHub is better. It’s a much nicer experience, everything is just easier, and well, GitHub won.

A very nice feature on GitHub is organisations. Brad and Jim have very generously invited the ReSharper runner to live under the xunit org. It doesn’t change the ownership, copyright or license of the project (xUnit.net is an Outercurve project, but the ReSharper runner is mine), it’s simply a nice place to live.

The name of the project has also changed. It always was more of a ReSharper project than a contrib project, so the name is now “resharper-xunit” to reflect this. I’ll still be using “xunitcontrib” as the name of the ReSharper packages, though.

What’s next?

Time to improve on the support. First item on the list is proper xunit2 based test discovery. I’ve opened a PR to track xunit2 progress, and more issues to track new functionality.

Please test it! Get it from the extension manager, and put it through its paces. And if you find any problems, report them!

Tags: , , ,

xunitcontrib

Comments (16) -

cairns commercial solar
cairns commercial solar United States
5/18/2015 3:07:06 PM #

This article is well researched and written. I think this content valuable information that is presented in an interesting way. The points made here are unique and well presented. I appreciate good writing like this.

Reply

philix
philix United States
11/19/2015 1:51:51 AM #

Ace Web Site

Reply

philix
philix United States
11/21/2015 12:40:50 PM #

Good Web Site.

Reply

philix
philix United States
11/23/2015 1:27:11 AM #

Nice Website.

Reply

philix
philix United States
11/28/2015 12:48:44 AM #

Ace Website.

Reply

Harriet Tenpas
Harriet Tenpas United States
1/6/2016 3:30:31 PM #

AWESOME!Can't wait for that, will be something to want to accomplish day by day, to do something AWESOME!

Reply

Luvenia Colier
Luvenia Colier United States
1/15/2016 4:03:05 AM #

getting the last pair of shoes in your size AWESOME!

Reply

Harriet Tenpas
Harriet Tenpas United States
1/15/2016 4:12:55 AM #

Well good for you! I have a lot but one I just thought of was when you lick a crease of paper so that it'll rip in a straight line and it actually tears in a frayed straight line rather than rips awkwardly. I love that bleachy taste and that bleachy satisfaction.

Reply

Francesca Vilardo
Francesca Vilardo United States
1/15/2016 4:21:04 AM #

I love the dolphin saving you one.

Reply

Elinor Gupta
Elinor Gupta United States
1/15/2016 6:36:35 AM #

The dolphin saving you one is the best one!

Reply

Rubin Hadcock
Rubin Hadcock United States
1/15/2016 6:41:27 AM #

Let me be the first to say: Congrats, Neil! I've been following this site from day one, and have loved every single day of awesomeness that it has delivered. You deserve all the success coming your way. Keep it up!AWESOME!

Reply

Dia Staab
Dia Staab United States
1/15/2016 7:42:37 AM #

getting laid AWSOME

Reply

Betsy Ragans
Betsy Ragans United States
1/15/2016 7:51:06 AM #

AWESOME!Can't wait for that, will be something to want to accomplish day by day, to do something AWESOME!

Reply

Georgeanna Carrigg
Georgeanna Carrigg United States
1/15/2016 7:55:08 AM #

Printing out an essay or paper, reading the first line and realizing there aren't any mistakes.<br />AWESOME!

Reply

Betsy Ragans
Betsy Ragans United States
1/15/2016 8:25:51 AM #

I can't wait to read this masterpiece. Ordering off the menu at fast food restaurants and old dangerous playground equipment have to be in the book!

Reply

Schermiportatili
Schermiportatili United States
2/10/2016 6:07:03 PM #

You really make it seem really easy along with your presentation but I to find this matter to be actually something that I feel I would by no means understand. It seems too complex and very extensive for me. I'm looking forward to your subsequent put up, I'll attempt to get the hold of it!|

Reply

Add comment

biuquote
  • Comment
  • Preview
Loading

Rel=Me

Month List

RecentComments

Comment RSS