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

Including images in MBunit report exports

We execute MBunit tests in a CI system that generate HTML reports, as well as machine readable reports. I'd like to attach images to the HTML reports. When running via Gallio.Icarus, the images show in the execution log. Unfortunately, they are not…
Precipitous
  • 5,253
  • 4
  • 28
  • 34
0
votes
1 answer

Mbunit - Gallio. Get name of the currently executing test

Is there a way to get the name of the currently executing test from ie the Setup method of a test fixture?
Kostas Konstantinidis
  • 13,347
  • 10
  • 48
  • 61
0
votes
2 answers

How to retrieve exception that caused a test to fail from MbUnit TestContext

I had a look at TestContext.CurrentContext.Outcome but it doesn't have what I'm looking for. Thanks Pawel
Pawel Pabich
  • 2,404
  • 4
  • 22
  • 33
0
votes
1 answer

Migration from MBUnit v2 to v3 and the ProviderFactory is gone

In MBUnit v2 I did this: public class ConnectionStringFactory { [Factory] public string ConnectionString { get { return…
Pascal
  • 12,265
  • 25
  • 103
  • 195
0
votes
1 answer

MBUnit calls a testmethod as often as many chars a factory string parameter returns?

Why is my Test method called as often as many chars the _ConnectionString returns??? The con variable in the test method gets always passed the next char of the ConnectionString property like con = d con = a con = t con = a con = s ... which is the…
Pascal
  • 12,265
  • 25
  • 103
  • 195
0
votes
1 answer

Allow own TestContext class to inject different connections Strings inVisual Studio Unit Test Project

In MBUnit I can annotate my Test class with a Factory and multiple getter returning an oracle/sql/mysql connection string which can be obtained by every test method in the test class. How can I do this with the Unit Test Project for Visual Studio…
Pascal
  • 12,265
  • 25
  • 103
  • 195
0
votes
1 answer

Register a Gallio zip installation with TestDriven.Net

I want to register a copy of the Gallio zip installation with TestDriven.Net. In another thread, a member has mentioned that the Gallio installer needs to run after the TD installer in order to register Gallio with TD. Unfortunately, I can't run…
Candy Chiu
  • 6,579
  • 9
  • 48
  • 69
0
votes
1 answer

Internal Error when starting up Gallio testrunner from Nant scripts

When Gallio starts up to start running our regression test with watiN, I get the following error: [gallio] Gallio NAnt Task - Version 3.2 build 744 [gallio] Start time: 1:07 PM [gallio] Stop time: 1:07 PM (Total…
Gary L Cox Jr
  • 680
  • 3
  • 10
0
votes
2 answers

Can someone help distinguish xUnit, nUnit, mbUnit from each other?

What distinguishes xUnit, nUnit,and mbUnit from each other? So far from what I can see, out-of-the-box mbUnit offers parallel test, xUnit offers an easy way to mix, reuse, and match multipe fixtures for any number of testing classes. So far I can't…
LLL
  • 1,085
  • 8
  • 16
0
votes
1 answer

PSExec Hangs On Running A Test but Works Fine on Debug Session

When i run the code in debug mode the test completes, when i run it in a run test the ps exec seems to hang and never return i put the kill in place also but it never finished. why does this complete on debug but not in a run mode. is there anything…
bhushanvinay
  • 449
  • 1
  • 5
  • 21
0
votes
1 answer

Gallio test suite installation

I am using MbUnit test framework and Gallio. I need to create an installer that install it and run some test on silent mode. I noticed that Gallio got a quiet installation mode 'GallioInstall.msi /quiet'. My problem is how to know when the…
Ben2307
  • 1,003
  • 3
  • 17
  • 31
0
votes
1 answer

'Microsoft.Moles.Framework.MbUnit.MoledAttribute' is not an attribute class

I'm attempting to use Moles with Gallio/MbUnit. After referencing Microsoft.Moles.MbUnit, and including Microsoft.Moles.Framework.MbUnit, I added the [Moles] attribute to a test I wrote with Moles. Unfortunately, it is not highlighted blue (as a…
Chris
  • 21
  • 2
0
votes
3 answers

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…
Pippen_001
  • 51
  • 2
  • 6
0
votes
1 answer

How to update Scroll values while using Bunit automation scripts

We have a requirement to update the scrollLeft value of the a element in blazor platform. We have tried to update the scroll Left property through databinding using the below code snippet. But its not working. So it is a mandatory to use the JS code…
Kamesh
  • 1
0
votes
1 answer

How to pass multiple data sets in XML in MbUnit

Suppose I have a code module which accepts a variable number of DataRows: Public sub Process(Dt As DataTable) End Sub I want to pass one or more test DataRows to my MbUnit test module: Test 1: DataRow 1: Green, 23 DataRow 2: Green, 24 Test…
Eddy
  • 11
  • 2