Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Testing DotNetNuke: mbUnit vs. nUnitTesting DotNetNuke: mbUnit vs. nUnit
Previous
 
Next
New Post
2/26/2010 7: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 12:35 PM
 

 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

Get direct answers to your questions in the Community Exchange.
 
New Post
2/26/2010 2:21 PM
 

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
DNN Corp.
 
New Post
2/26/2010 5: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 11: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


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, 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 DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out