mbunit

TestDriven.net with Gallio, MbUnit and NCover problems

Hi, Why doesnt TestDriven.Net work with my gallio/mbunit tests? I've used TDD.Net with MbUnit v2 and not had any problems, but with the new gallio release on my new pc, it does nothing. From the tdd right click menu in solution explorer, if i do "test with debugger" i get "0 passed, 0 failed, 0 skipped" in the VS status bar at the bot...

Merging MbUnit and NUnit tests and displaying in CruiseControl

We have a CruiseControl server running various AntUnit, MbUnit and NUnit tests via Ant. In order to merge the outputs from them all we have the following in the CruiseControl config: <log dir="logs/${project.name}/"> <merge dir="${q7.build.tests.dir}/reports" pattern="*.xml" /> <merge dir="${q7.build.tests.dir}/reports" pattern="**...

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

My ReSharper Gutter Icons for Unit Tests aren't showing

I've installed ReSharper 4.1 and Gallio 3.0.5, but I don't get the gutter icons for unit tests. The tests seem to run fine in the Test Explorer, but I don't have icons next to the tests in code. What could be causing this? I previously had the MbUnit 2.4 ReSharper plugin installed, but it should be uninstalled now. ...

MbUnit - Getting test failure/success result in TestFixtureTearDown

I am using MbUnit for some integration tests. In the TestFixtureSetUp, I create a new instance of a database (using a GUID as the DB name). In the tear down, I delete it. However, if tests fail, I want to keep the database alive (so I can investigate). Is there a way to tell from my TestFixtureTearDown whether the tests passed or faile...

MbUnit cannot recognize test assemblies compiled with MSBuild on Windows Server 2003

I've recently installed MbUnit version 2.4.2.355 on our build server which runs via Cruise Control.NET and NAnt, on a Windows Server 2003 machine with .NET Framework 3.5 SP1 installed. I've checked every nook and cranny of the build scripts, and the NAnt output report on CC.NET tells me that the test project builds fine. This is the NA...

Run a single unit test from a fixture of many in MbUnit

Is there anyway to add an attribute to a [Test] method in a [TestFixture] so that only that method runs? This would be similar to the way the [CurrentFixture] attribute can be used to only run a single fixture. I ask as sometimes when I test the model I want to profile the sql being executed and I only want to focus on a single test. Cur...

What is a Generative Unit Test Framework?

On stackoverflow I've come across on mbunit. On its page it states that mbunit is a generative unit test framework, but I can't find anywhere what a Generative unit test framework stands for. I was hoping to get : A definition Links to articles about what a Generative Unit Test framework is and isn't. ...

Team Foundation Server and MbUnit Testing

I'm really new to TFS Server and MbUnit. What steps do you need to do to make the builds on TFS run your MbUnit tests? ...

how to add MBUnit test to CruiseControl.Net config file

hi, how to add MBUnit(tag) test to CruiseControl.Net config file. Thanks, Raja S ...

MbUnit Rollback

I'm testing the MbUnit Framework and want to keep my test database in a persistent state after each test. How can I accomplish this? This is what I'm trying, but my table is filled after the test is completed. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data; using Gallio.Framew...

Using MbUnit3's [Rollback] for unit testing NHibernate interactions with SQLite

Background: My team is dedicated to ensuring that straight from checkout, our code compiles and unit tests run successfully. To facilitate this and test some of our NHibernate mappings, we've added a SQLite DB to our repository which is a mirror of our production SQL Server 2005 database. We're using the latest versions of: MbUnit3 (p...

MbUnit: Testing custom ordered collection

I have a custom collection type of data. This data is sorted by three properties in their order, e.g. take the following example: class Data { public int PropertyA() { get; set; } public int PropertyB() { get; set; } public int PropertyC() { get; set; } } The collection must maintain the order of A, B, C, e.g.: [A, B, C] [1, 2,...

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

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 way to compare two doubles for equality in MbUnit 3.0? I know I could round them up my...

How do you get Cruise Control to Email the unit test results from Gallio(MbUnit)?

I have a build server that uses Cruise Control to run our test cases. I have successfully configured ccnet 1.4.2 to display the Gallio test results in the webdashboard but I can't seem to get ccservice to email the Gallio test results out in the auto generated Emails. I have tried editing the .xsl file but to no avail. I am merging th...

MbUnit 3.0 Separate Download

I want to get MBUnit 3.0, but without the Gallio bundling.. not sure whether such a package is available or not? ...

How to debug mbunit/Gallio unit tests in visual studio

I am trying to figure out how I can hit breakpoints in my unit tests that are written with MbUnit/Gallio. I tried running Gallio.Icarus, attaching vs debugger to it, the breakpoints weren't hit. Next I tried to start Gallio.Echo from project properties, but I was getting an error message, after supplying the dll, saying only .exe's can b...

do you know any tutorial for MBUnit?

Hi, It looks a bit hard to find documentation about MBUnit, do you know any tutorial? Thank you! ...

Write result to test report in MbUnit with Gallio

Hi, Does anybody know if it´s possible to write results to some tracelistener or something that the test-report snaps up and embeds into the test report? for example, var loans = GetLoans(...parameters); Assert.IsTrue(Loans.Length>0); TestReport.Write("user has :" +loans.Count); and then have it show up in the test report! Any ideas? ...