CppStars / mb-unit

Automatically exported from code.google.com/p/mb-unit
0 stars 0 forks source link

Running MBUNit tests parameterized using Row Attribute in Gallio Echo #927

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.There is a MBUnit test as below:
[Test]
[Row("C1")]
[Row("C2")]
[Row("C3")]
public void Test1(string channel)
{
  //validation being done
}

2. Run the test using Galio Echo as below:

Gallio.Echo.exe "C:\Apps\App1\UITest\bin\Group1.dll" /f:"Member:/Test1/" 
/rt:Html /rd:C:\

All 3 instances of tests run successfully as Test1("C1"), Test1("C2") and 
Test1("C3")

3. Now I want to run only one instance of the test i.e. with parameter as "C1". 
Gallio echo command(s) tried are given below:

Gallio.Echo.exe "C:\Apps\App1\UITest\bin\Group1.dll" 
/f:"Member:/Test1(\"C1\")/" /rt:Html /rd:C:\

Gallio.Echo.exe "C:\Apps\App1\UITest\bin\Group1.dll" /f:"Name:/Test1(\"C1\")/" 
/rt:Html /rd:C:\

What is the expected output? What do you see instead?

Instead of running just one test instance, no tests are run. No error is 
thrown. Gallio echo just says no tests to run.

How can command line arguments be provided when you want to run only specific 
data-driven/parameterized tests like above?

Original issue reported on code.google.com by immy.she...@gmail.com on 29 Aug 2013 at 8:08