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
1
vote
1 answer

How do I get Gallio.echo to run MbUnit Tests?

I have MbUnit tests that run if I load them into MbUnit.GUI.exe, however when I try to execute them from the Gallio.echo command-line tool I get 0 test available. I then loaded the assemblies into the Gallio GUI and the tests do not show. I am…
BFoust
  • 683
  • 7
  • 9
1
vote
1 answer

Selenium Server with MbUnit not respecting Degree of Parallelism

I've got a question that I have researched but can't seem to find any help so I am going to ask here. Currently I am running a Selenium Server grid with 4 Firefox nodes the following is how I start the Grid and its nodes. Hub: java -jar…
1
vote
1 answer

Run MBUnit Tests using Resharper 8.1

I need to run MBUnit Tests using Resharper 8.1 in in visual studio 2012. I couldn't find any resharper plugin for this. Any help will be appreciated. Sandra
Sandra
  • 63
  • 3
  • 14
1
vote
3 answers

Is it possible to to execute code befor all tests are run?

I am writing integration tests.Now, before tests are run I want to setup the database with initial data.For this, I have created a separate project, which is run before test project is executed(using MSBuild file).But, I want to merge the db setup…
junky_user
  • 385
  • 1
  • 3
  • 10
1
vote
1 answer

WatiN test using IE.GetCookie failing only from CruiseControl

I added some simple WatiN tests to our app today to check that a cookie value is stored correctly. The tests pass locally on all machines in the team. However, when CruiseControl runs the tests on our Build server these new tests fail on the line…
Sam Wessel
  • 8,830
  • 8
  • 40
  • 44
1
vote
3 answers

Using WatiN through MbUnit to test ASP .Net MVC web application

I am trying to apply some WatiN UI tests to my new ASP .Net MVC application, running the WatiN tests through MbUnit, but am having some difficulties. If I follow the instructions (exactly) on this page, then the google homepage loads, up the text is…
Brett Rigby
  • 6,101
  • 10
  • 46
  • 76
1
vote
1 answer

Set log level for Gallio execution log

How do I configure log4net or my Gallio test runners (Icarus and Echo) to use a different logging level for the Gallio Execution Log and my own file appender. I want my log file to have a DEBUG log level and Gallio to have an ERROR log level. I…
carlin.scott
  • 6,214
  • 3
  • 30
  • 35
1
vote
2 answers

Is it possible to change the way unit tests are invoked?

My guess is that the current semantics of unit testing involve actually calling the method, i.e., if I have a method MyTest() then that's what gets called. My question is this: is it possible to somehow change the pipeline of the way tests are…
Dmitri Nesteruk
  • 23,067
  • 22
  • 97
  • 166
1
vote
0 answers

datadriven multi-browser Selenium Grid2 MbUnit/Gallio C# tests timeout

I am working in C# with Selenium Grid2 and MbUnit/Gallio. I read that a combination of datasets can be used to drive MbUnit UsingFactories alternative in MbUnit v3. So, I am trying to use MbUnit to have a single Test executed on multiple browsers…
Fazle Khan
  • 55
  • 6
1
vote
0 answers

Can I fail a test in MBUnit if an exception is thrown in FixtureTeardown?

If a test goes into native code and throws an accessviolation on shutdown - MBUnit notices this but still passes the test (all the individual tests passed - but there was a crash on shutdown) So I see a failure: [failed] Fixture…
Derek
  • 7,615
  • 5
  • 33
  • 58
1
vote
1 answer

Cannot write to gallio.echo console using NativeConsole.Instance in 64 bit OS

With Windows 7 32-bit I was able to output text to Gallio.Echo runner using Gallio.Runtime.ConsoleSupport.NativeConsole.Instance.WriteLine(""). But I'm failed with it in Windows 7 64-bit. Is there any way to accomplish it? I'm using Gallio bundle…
trickbz
  • 945
  • 1
  • 9
  • 25
1
vote
2 answers

How to mock just a method?

I need to mock just Method1 to test my process exception. How I can do that? public interface IFoo { void Method1(); object Method2(); } public class Foo : IFoo { public void Method1() { // Do something } public…
Zote
  • 5,343
  • 5
  • 41
  • 43
1
vote
1 answer

How can I emulate MbUnit's [MultipleCulture] attribute in MSTest?

MbUnit has a great attribute: MultipleCultureAttribute. I am wondering if there is an easy way to do this in MSTest? So far, the best I can come up with is: Externalizating the actual test code to a private method Saving the current culture Setting…
Eddie Butt
  • 493
  • 3
  • 4
1
vote
1 answer

MbUnit - Terminate Test from within SetUp method

I want to Terminate my test with a specific outcome from within the SetUp Method. I have tried both SilentTestException and Assert.Terminate and Assert.TerminateSilently but the actual Test method seems to be executed regardless. You can reproduce…
Kostas Konstantinidis
  • 13,347
  • 10
  • 48
  • 61
1
vote
1 answer

Unit test summary incorrect in Visual Studio for mbunit tests

When I run my mbunit tests in Visual Studio test runner (VS 2008) my tests pass but the test summary does not include the passed tests. For a test, I created a test project with a single test and this is the test summary VS returns when I run…
A J