mbunit

VS 2010 and MBUnit how to run just one test

I have Gallio/MbUnit installed and am using VS 2010 RC and I want to be able to run a single unit test or just all unit tests inside of a TestFixture and not all the tests in the entire project everytime I debug. How do you do this in VS 2010? ...

Resharper Unit Test Runner executes unit tests sequentially or in parallel?

I would like to know if Resharper Unit Test runner runs unit tests sequentially or in parallell (each on its own thread). I am using MBUnit test framework. Thanks. ...

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? ...

MbUnit (gallio) and Visual Studio.Net Tests Not Completing or Debugging

Hi I'm using Gallio\MbUnit 3.1 with ReSharper and Visual Studio 2008. Everything is working well except this type of test: [Test] [Row("test@badEmail@_test.com")] [Row("test@badEmail@_test.")] public void IsValidEmail_Invalid_Emails_Should_Return_False(string invalidEmail) { Assert....

Dump iBatis sql in Nunit?

I saw nHibernate video during the weekend. In the tutorial, the programmer was using MBunit to test his code. One neat thing i liked about nhibernate was, if you tell nhibernate to 'showSql', it displays sql in Mbunit dialog box after the unit test. I was wondering if there is something similar for ibatis using nUnit? ...

Gallio TestDriven.Net testing problem

Hello , I have a tdd system , where I use Gallio 3.1 with TestDriven.Net . I've downloaded the patches for them. 1) I'm getting this stack and the test wouldn't stop - SRCSRV: cmd /c svn.exe cat "http://mb-unit.googlecode.com/svn/branches/v3.1/src/Gallio/Gallio/Framework/Pattern/PatternTestInstanceState.cs@2360" --non-interactive > "C...

Cannot integrate Gallio MBUnit with Team City

I have been trying to get my MBUnit tests suite to work on Team City for many days now without any success. My solution builds no problem. The program is with my tests. After googling for Gallio integration with Team City I tried many ways to make this thing work and I think I am close but need help. I have included the gallio bin dire...

Gallio MbUnit and Team City problem

I asked a question this morning about an integration problem between Gallio and Team City. I changed the msbuild file to use the proper syntax with the latest Gallio build script API. Thank you for that Jeff Brown but now when I tried to build the application on Team City I get the following error : An unexpected error occurred during...

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 completion in Gallio Icarus, but they run past the breakpoints. I see the symbol tables loading ...

Gallio test runner plugin to Visual Studio 2008 and 2010 for MBUnit tests

If I install Gallio 3.x will I should have test runner plugin for Visual Studio? Cause now I only use Gallio Icarus, but better is to have integration plugin... :( or I must use TestDriven.NET or Visual Nunit ?? ...

Tests run in Gallio / MbUnit fail; unable to load Castle DynamicProxy

I have a .NET 3.5 assembly covered by around 4000 MbUnit tests. I hve been running these using the mbunit.cons.exe program with no trouble. Now I am trying to switch to Gallio (mbunit.cons.exe started blowing up with an 'out of memory' exception when producing the XML report). When running the tests in Icarus, most of them fail with th...

Comparing two objects that are the same in MbUnit

From MBUnit I am trying to check if the values of two objects are the same using Assert.AreSame(RawDataRow, result); However I am getting the following fail: Expected Value & Actual Value : {RawDataRow: CentreID = "CentreID1", CentreLearnerRef = "CentreLearnerRef1", ContactID = 1, DOB = 2010-05-05T00:00:00.0000000, Email = "Email1",...

Compare 2 lists in MbUnit 3.1

Hi I am trying to compare 2 Dictionary objects for equality in MbUnit 3.1 like so Assert.AreEqual<FieldList>(expectedOutputFieldList, actualOutputFieldList); Where FieldList is = Dictionary<string, object> However this throws up the following "error": Both values look the same when formatted but they are distinct instances. Is the...

How to unit test my project against different versions of external dll api?

I am developing an app that relies heavily on an external dll, my app needs to support new versions of the dll as well as being backwards compatible with the old ones. Are there any good ways to have my unit tests target all of these different dll versions without the need to rewrite the tests as soon as a new version of the api is rel...

MBUnit - Calling the same method multiple times in a sequence?

Hi Is there a way in MBUnit to have the same test called multiple times with different parameters in a sequence, as such: Method1() Method2(param A) Method3() Method2(ParamB) Method4() Method2(ParamC) etc? I've tried using the Order parameter but sadly I was too hopeful in that the Ordering would be considered class-wide rather than t...

Selenium Grid not always using all of its registered RC's, why?

My Selenium Grid setup is as follows (all VMs) VM1 - Windows 7 x64 Windows XP x32 - Grid Hub + 2 RCs registering the default *firefox environment VM2 - Windows XP x32 - 2 RCs registering the default *firefox environment VM3 - Windows XP x32 - 2 RCs registering the default *firefox environment I'm happily using Mbunit and Gallio to dr...

Unit Testing: hard dependency MessageBox.Show()

What ways can the SampleConfirmationDialog be unit tested? The SampleConfirmationDialog would be exercised via acceptance tests, however how could we unit test it, seeing as MessageBox is not abstract and no matching interface? public interface IConfirmationDialog { /// <summary> /// Confirms the dialog with the user /// </s...

How exactly do MbUnit's [Parallelizable] and DegreeOfParallelism work?

I thought I understood how MbUnit's parallel test execution worked, but the behaviour I'm seeing differs sufficiently much from my expectation that I suspect I'm missing something! I have a set of UI tests that I wish to run concurrently. All of the tests are in the same assembly, split across three different namespaces. All of the test...

Auto Re-Running of Tests that fail

I have a set of Selenium/MbUnit Tests that work fine, but tend to take a while to run (over 4 hours) A problem i am finding is that about 1 in 20 test seems to timeout when running. I have confirmed the Selenium GRID is working and the Selenium RC's are all fine, it just seems to be a qwerk of the system. What is really annoying though i...

What are the minimum binaries needed to run Gallio with MbUnit tests.

We recently upgraded our application to .Net 4.0. We were using MbUnit 2.x. With the upgrade to .Net 4.0 the MbUnit tests don't seem to run. Rather than fighting with it I decided to upgrade to MbUnit v3 which ships with Gallio test runners. I would like to put the minimum required binaries/files into a Nant folder in the third party fo...