About the author

Steven Harmansteven harman :: makes sweet software with computers!

For recent posts and more about me, scroll to the bottom.

Subscribe

  • Subscribe to my feed. via RSS
  • Subscribe via email via email

News

Badges

  • Subtext Project
  • Support Subtext

Run your MbUnit Tests from ReSharper 4.0!

I just saw that Albert Weinert has upgraded the MbUnit test runner plugin to work in ReSharper 4.0, sweet! Since ReSharper 4.0 is still in pre-beta, there is no guarantee that it will work at all, but I'm running the latest nightly builds and IMO its getting more stable every day.

MbUnit ReSharper Test Runner I verified that the MbUnit test runner plugin does work by installing it on against ReSharper 4.0 build 758 and opening the Subtext 1.9 Branch source code. The image to the left shows the ReSharper Unit Test Explorer open and displaying the MbUnit tests from Subtext.

Having such tight integration with ReSharper goes a long way in delivering the kind of frictionless development experience that I'm after. Though to be honest, I'm still a huge fan of TestDriven.net - you just can't beat the Right-click -> Run Test slickness that it brings to the table.

That being said, I know not everyone has TestDriven.net, but a lot of folks are already using ReSharper to increase their productivity and reduce daily development pains. And being able to run MbUnit tests right inside the IDE, via ReSharper, will reduce those pains even more... Low Friction == More Better!

And hopefully this plugin will open a few doors for MbUnit - my xUnit test framework of choice - and increase its adoption rate and market share. :)

So what are you waiting for... go get you some ReSharper + MbUnit love!

What others are saying.

# re: Run your MbUnit Tests from ReSharper 4.0!
Gravatar Tom
Apr 22, 2008
Now, I haven't played with Testdriven.net yet; but I have CTRL + ALT + R as a shortcut to test "this one". Works like a charm ;-)

Although I certainly miss the combo resharper - ncover.
# re: Run your MbUnit Tests from ReSharper 4.0!
Gravatar Gavin
Jun 10, 2008
Good to hear that you got MbUnit running from ReSharper 4.0. First, which version of MbUnit are you using and second, can you run your tests from within VisualStudio?

I've installed ReSharper 4.0 for use in VS2008 and MbUnit 2.4 and Albert Weinert's beta-7 plugin, but so far Resharper doesn't see MbUnit from within the IDE. The plugin is shown in the plugins dialog for Resharper. What were the steps you took to get these all working together.

Many thanks.
# re: Run your MbUnit Tests from ReSharper 4.0!
Gravatar Steven Harman
Jun 10, 2008
Gavin,
When I wrote this post I was running a ReSharper 4.0 EAP build, MbUnit 2.4, and the latest version of Albert's plugin (around beta 6 I think).

I know that R# just went RTM this morning and I've already heard of issues getting the Gallio test runner (which MbUnit 3 and xUnit run on) to work with R# - and the suspected solution is a recompile of addins.

Anyhow, I just upgraded to R# 4.0 RTM but I've not tried getting the test runner working with R# just yet... I mainly use TestDriven.net for running tests. :) But if/when I do get it working, I'll be sure to post a comment here... and maybe you could do the same if you find an answer? :)

Also, you might want to check out the MbUnit mailing lists for more info.
Comments have been closed on this topic.