HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Testing DotNetNuke: mbUnit vs. nUnitTesting DotNetNuke: mbUnit vs. nUnit
Previous
 
Next
New Post
2/26/2010 4:39 AM
 

To the DotNetNuke Testers:

I noticed in a recent blog about testing that much of the new testing going on for DotNetNuke is with MbUnit. When I check out the MbUnit's websites (including Gallio), I see almost no documentation on how to use it, and the leading blog post of "how great" MbUnit is ("MbUnit - Unit Testing on Crack", by Scott Hanselman) is from 2006 (almost four years ago!).

So, my general questions are:

  1. "Why MbUnit?" Why not nUnit (or some other xUnit framework)?
  2. Is MbUnit "Abandonware", as addressed in another Scott Hanselman article (also from 2006)? (From the looks of the websites, it gets that appearance very quick when you delve into the documentation, which a beginner would depend upon.)

I ask the questions, not to stir debate over which is "better" so much as to gain understanding about the choices & rationale of the DotNetNuke development team on why they appear to be going with MbUnit. I, too, need to make choices for building testing into my development efforts, so any discussion from those close to the testing of DotNetNuke core & modules  (such as Philip Beadle & Charles Nurse and others) would be greatly appreciated!

Thanks!

 
New Post
2/26/2010 9:35 AM
 

 I can't answer this all as I am not heavily involved in this aspect but I can tell you that the Gallio project is the new iteration of MbUnit (perhaps my wording is off here but Gallio is basically picking up where MbUnit left off and just utilizing it to avoid writing all that logic again is my guess). Again, I wasn't involved in this (or the mbunit/gallio projects), but I believe the reason we need Gallio vs nUnit is we needed something that is more specifically ASP.NET friendly, not just.NET friendly. 


Chris Paterra

 
New Post
2/26/2010 11:21 AM
 

Gallio also allowed for integration into Visual Studio which was a big requirement for us.  In general, mbUnit is well regarded as a solid unit testing platform - much more so than MS Test.  nUnit and xUnit are certainly good choices as well, but there is nothing to specifically recommend one over the other beyond a personal preference.  There used to be a lot more variance in the capabilities of the various frameworks, but in the last couple of years, they have all achieved rough parity.


Joe Brinkman
DotNetNuke Corp.

The Accidental Geek - Joe Brinkman

 
New Post
2/26/2010 2:08 PM
 

One of the "cool" features of MbUnit is that you can turn on screen captures and videos of the tests as they occur.  This is fantastic for being able to watch how a test fails thus making it much easier to repro a bug and shortening the turn around on bug fixing in regression tests.  Check out the solution we provide and you'll see you can turn on video in the app.config file to get a video embeded in your test results report.

MbUnit also made it very easy to provide data to tests so they can be run multiple times with different values, check out the way we did it with a csv file so you can manage the data in one place.  Very neat.

As for documentation the way we wrote the tests was with community members in mind who wanted to learn how to test.  Jeroen from Watin has also approved the way the tests are written so we are confident this approach works well.  If you write some tests for the core or "core" modules please email me and we'll review and add them to the project.  We are always looking for help to get a larger suite of tests sorted out.

HTH your decision.


Philip Beadle - Employee
 
New Post
2/27/2010 8:52 AM
 
Thanks everyone! That was the kind of information I was looking for. Much appreciated!
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Testing DotNetNuke: mbUnit vs. nUnitTesting DotNetNuke: mbUnit vs. nUnit


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

Attend A Webinar
Try An Online Demo
Download DotNetNuke Professional Edition Trial
Have Someone Contact Me

Like Us on Facebook Join our Network on LinkedIn Follow DNN Corporate on Twitter Follow DNN on Twitter

Advertisers

DotNetNuke Scoop!

Sponsors

DotNetNuke Corporation

DotNetNuke Corp. is the steward of the DotNetNuke open source project, the most widely adopted Web Content Management Platform for building web sites and web applications on Microsoft .NET. Organizations use DotNetNuke to quickly develop and deploy interactive and dynamic web sites, intranets, extranets and web applications. The DotNetNuke platform is available in a free Community and subscription-based Professional and Enterprise Editions with an Elite Support option. DotNetNuke Corp. also operates Snowcovered.com where users purchase third party apps for the platform.