Questions tagged [mbunit]

MbUnit is a generative unit test framework for the .NET Framework.

MbUnit provides advanced unit testing support with advanced fixtures to enable developers and testers to test all aspects of their software.

There are two current versions of MbUnit, v2 and v3.

MbUnit v3 is the current version of the MbUnit Framework. It is based on the Gallio Test Automation Platform which provides a stunning array of interoperable test tools. MbUnit v3 has been rewritten from the ground up to provide a compelling suite of testing features, native support for .NET 2.0 and .NET 3.5, better documentation, and cross-platform compatibility with Mono.

MbUnit v2 is the older version of the MbUnit Framework. It is still actively maintained for the benefit of existing users.

248 questions
6
votes
1 answer

Invoking mbunit Test Runner Programmatically

I am currently building a test suite using mbunit. So far so good, but instead of using the included Icarus GUI, I want to have my own test runner. Not knowing much about what to do, I go on Gallio's Google group and copied the code posted by a…
edc
  • 105
  • 1
  • 8
6
votes
1 answer

MbUnit Icarus self-destructs on this test

I'm trying to test a multi-threaded IO class using MbUnit. My goal is to have the test fixture constructor execute 3 times, once for each row on the class. Then, for each instance, execute the tests multiple times on parallell threads. However,…
Lilith River
  • 15,981
  • 2
  • 38
  • 73
6
votes
1 answer

What dlls from Gallio do I need to include for TeamCity to run the tests

I'm using Gallio and MbUnit 3, and I have Team City 4 installed. I just put the whole bin directory of Gallio into Subversion since I didn't know what dlls I needed. Do you know which ones I need to keep, and what I don't need to put into SCM? …
Lance Fisher
  • 25,328
  • 20
  • 91
  • 121
6
votes
1 answer

Using Gallio/Mbunit with TFS 2010 Team Build

How do you configure a Team Build 2010 build process template to run MbUnit tests via Gallio?
David Gardiner
  • 16,233
  • 16
  • 71
  • 115
6
votes
7 answers

When unit testing, do you have to use a database to test CRUD operations?

When unit testing, is it a must to use a database when testing CRUD operations? Can sql lite help with this? Do you have to cre-create the db somehow in memory? I am using mbunit.
mrblah
  • 88,033
  • 134
  • 292
  • 404
6
votes
1 answer

Getting test runner to work with Gallio from Nuget

I think I'm missing something here. I installed Tesdriven and then Gallio (third link from top - Gallio 3.5 x64 installer) Then I installed the mbunit dlls from Nuget because I didn't want to include a dll from my hard drive as it makes it difficult…
LocustHorde
  • 5,813
  • 14
  • 54
  • 86
5
votes
2 answers

Unable to output log messages in MbUnit + TestDriven

I am unable to to output log messages to console via the Common.Logging framework in MbUnit tests run by TestDriven. I am not sure if it has to do with the way Gallio is registered with TestDriven. I followed the steps on this post ( Register a…
Candy Chiu
  • 6,307
  • 8
  • 43
  • 66
5
votes
3 answers

do you know any tutorial for MBUnit?

It looks a bit hard to find documentation about MBUnit. Does anyone know of any tutorials?
Uince
5
votes
2 answers

Gallio.Model.ModelException: An exception occurred while invoking a test driver

Gallio.Model.ModelException: An exception occurred while invoking a test driver. ---> System.Runtime.Serialization.SerializationException: Type 'Microsoft.Cci.Pdb.PdbDebugException' in Assembly 'Gallio, Version=3.4.0.0, Culture=neutral,…
5
votes
3 answers

Debug using MbUnit/Gallio 3.1

When I use the [Debug] button in Gallio, the breakpoints in my unit tests are not hitting. The unit tests are written with MbUnit/Gallio. I am using MbUnit/Gallio version 3.1 build 397 with Visual Studio 2010 Beta 2. The unit tests run to…
RL.
  • 51
  • 1
  • 3
5
votes
1 answer

Questions when moving from MbUnit to MsTest

Our team is looking to switch from using mbunit to mstest, but there appears to be some disconnect between the two. Does anyone know how to simulate the CombinatorialTest and Factory attributes from mbunit when using mstest? I think that is our only…
Elijah Manor
  • 17,603
  • 16
  • 69
  • 79
5
votes
3 answers

Are there any plans for Microsoft to support testing frameworks other than MSTest?

It seems like you should be able to configure your preferred unit testing framework as a plugin to Visual Studio/Team system like you can with SourceControl providers. Is anyone aware of an effort within microsoft to allow for swapping out MStest…
JNappi
  • 1,437
  • 1
  • 14
  • 24
5
votes
3 answers

Why isn't xUnit.net's FactAttribute AttributeUsage.Inheritable?

Having not written a unit testing framework before, it seems to me that an inheritable Fact attribute would make it easier to write abstract test classes or test interfaces if certain types in an assembly all needed to be tested for similar things. …
Scott Lawrence
  • 6,315
  • 12
  • 43
  • 61
4
votes
1 answer

MbUnit: The most elegant way to compare doubles?

The code Assert.AreEqual (9.97320998018748d, observerPosition.CenterLongitude); produces Expected Value & Actual Value : 9.97320998018748 Remark : Both values look the same when formatted but they are distinct instances. What is the most elegant…
Igor Brejc
  • 17,626
  • 12
  • 72
  • 92
4
votes
3 answers

Automated testing for Classic ASP

Does anyone do automated QA testing for a Classic ASP site? I started looking at WatIn and MBUnit but not sure of the best way to structer the tests.
Mike
1 2
3
16 17