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
2
votes
0 answers

How to run MbUnit tests in VS2013

I installed Gallio&MbUnit 3.4.14, via NuGet. Also I installed Gallio Bundle with Icarus runner from https://code.google.com/p/mb-unit/ VS does not see the MbUnit tests I wrote. Though I can run the MbUnit tests via Icarus Runner. Is Gallio and/or…
stasde
  • 89
  • 10
2
votes
0 answers

MbUnit tests pass when run directly from visual studio, but fails when run via command line

I've been using MbUnit for unit testing for a while, along with Nhibernate and Sqlite. I am now trying to setup a CI server with Jenkins - I have successfully managed to configure Jenkins to pull the code from github and compile it using MSBuild…
iamserious
  • 5,385
  • 12
  • 41
  • 60
2
votes
1 answer

How does one create a global testfixturesetup routine with MBUnit and C#?

I'm using MBUnit for my test project and have a setup routine that must run before several different test fixtures can run properly. Currently in each TestFixture I've got the [TestFixtureSetup] attribute on a routine that performs this, but the…
tom.dietrich
  • 8,219
  • 2
  • 39
  • 56
2
votes
0 answers

Create NUnit tests analogous to a MbUnit TestSuiteFixture

Is it possible to achieve the same (or close to the same) functionality as a MbUnit TestSuiteFixture using NUnit? I need to generate sets of dynamic test cases and MbUnit's TestSuiteFixture is the only thing I have found so far that comes close to…
Ian Davis
  • 3,848
  • 1
  • 24
  • 30
2
votes
1 answer

Gallio Integration with NANT and CruiseControl.NET

In our build process we're currently using MBUnit 2.x tests, called from an NAnt task, called from CruiseControl.NET. I've uprgaded to Gallio and MBUnit 3.x locally and am able to run tests from VS2008. I'm having trouble getting our build process…
LJM
  • 6,284
  • 7
  • 28
  • 30
2
votes
1 answer

Tests failing in CruiseControl but succeed when I run them

I have CruiseControl.NET (v 1.6.7981.1) set up on a Windows 7 Pro dedicated build machine. I have a VS2012 project setup to build and then run MBUnit tests using Gallio.Echo.exe. My problem is that when CC.NET runs these tests it fails on a few of…
2
votes
1 answer

How do I ignore a test conditionally in mbUnit?

I'm using TeamCity to do automated builds of test and production. TeamCity runs our mbUnit 3.1 tests at the end of the process with Gallio. When running the test build, Gallio should try to execute tests against the test database server. However,…
Dave Neeley
  • 3,526
  • 1
  • 24
  • 42
2
votes
1 answer

Is it possible to have factory tests in mstest, like in MbUnit?

We are using mstest for unit tests at our company. The main reason is that there is no free Visual Studio integration for MbUnit (TestDriven.NET is not free for companies). Recently, I have stumbled upon a need to run the same unit tests on two…
mark
  • 59,016
  • 79
  • 296
  • 580
2
votes
4 answers

Can i use my WatiN tests to stresstest?

In my current project we are testing our ASP.NET GUI using WatiN and Mbunit. When I was writing the tests I realized that it would be great if we also could use all of these for stresstesting. Currently we are using Grinder to stresstest but then we…
Andreas R
  • 555
  • 1
  • 4
  • 12
2
votes
1 answer

FixtureSetup on MbUnit / Gallio doesn't run

I don't understand this problem. First I had MBUnit v2 referenced and everything worked perfectly. Then I installed and referenced MBunit v3... Which seems to be MbUnit.dll and Gallio.dll in the Gallio install bin-folder. And when I compiled I got…
Fredrik
  • 2,016
  • 3
  • 15
  • 26
2
votes
2 answers

Does mbunit gallio ignore Test Order when using Parallelizable?

We are using mbunit gallio with [TestFixture, Parallelizable] testfixtures and [Test(Order = X), Parallelizable] test attributes, it all works fine apart from test order being effectively ignored no matter what X value we apply, this just doesn't…
1
vote
0 answers

MbUnit and DataDrivenTests how to run single Row&

I'm trying to move big project from NUnit to MbUnit(Gallio). And I've big(for me) problem in DataDriven Tests( Current MbUnit example Gallio exploring as single test case. [Test] [Row("111qqq", true)] [Row("qqq111", true)] [Row("*", false)] public…
1
vote
2 answers

Is there any good way to run one set of tests with two different AssemblyStartups

I'm working on a pretty standed ASP.NET MVC application. We've got the core logic behind a set of services and we're using StructureMap to inject appropriate instances of appropriate IRepositories to abstract communications with the data layer…
Wyatt Barnett
  • 15,573
  • 3
  • 34
  • 53
1
vote
2 answers

How to execute concurrent tests with Selenium WebDriver on a single machine?

My goal is to run multiple tests on a single machine in parallel. For that I'm using Selenium WebDriver with Firefox and Mbunit. Unfortunately it looks like like driver creation in Selenium is not thread safe and I have to wrap this part of the…
Pawel Pabich
  • 2,404
  • 4
  • 22
  • 33
1
vote
1 answer

How to write custom message when exception thrown like Gallio/MbUnit?

I am using PostSharp with Gallio/MbUnit. I would like to be able, from a test case, to catch exceptions and write a custom message for the exceptions I catch to wherever exceptions are written. The exceptions would be caught by a PostSharp aspect.…
cm007
  • 1,352
  • 4
  • 20
  • 40