tkpatro123 / mb-unit

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

DynamicTestFactoryExecutionLog presentation depending on wether fixture or case is selected #564

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I run a parameterized Dynamic test case factory (source below)
2. I select the class name in the Test Explorer and the ExecutionLog looks fin
3. I select the method name in Test Explorer and the ExecutionLog is now
longer and has what I think a partly strange layout and repeated results

What is the expected output? What do you see instead?
same Log for class and method level (when only one test case in the class)

What version of the product are you using? On what operating system?
3.1.354

Please provide any additional information below.

[DynamicTestFactory]
[Row(1), Row(2), Row(3), Row(4)]
public IEnumerable<Test> CreateDynamicTests(int n)
{
for (int i = 0; i < n; i++)
{
int iStore = i;
string testName = string.Format("DynamicSample_{0}of{1}", i + 1, n);
yield return new TestCase(testName, () =>
{
TestLog.WriteLine("i={0}", iStore);
Assert.AreEqual(iStore, iStore);
});
}
}

Original issue reported on code.google.com by niklas.d...@gmail.com on 15 Oct 2009 at 7:38

GoogleCodeExporter commented 8 years ago
This happens because the test steps that were selected span multiple branches 
of the
test result tree that do not include the parent.  We don't show rolled up 
statistics
because we don't have them.

We should try to make this better in the future with the new test result 
presentation UI.

Original comment by jeff.br...@gmail.com on 23 Oct 2009 at 6:19

GoogleCodeExporter commented 8 years ago

Original comment by Yann.Tre...@gmail.com on 17 Jul 2010 at 8:20

GoogleCodeExporter commented 8 years ago

Original comment by Yann.Tre...@gmail.com on 14 Jun 2011 at 5:53