MudassarRasool / mb-unit

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

Gallio v3.4 does not display the correct number of test cases in the "Test Results" window of Icarus #907

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. Write three simple tests, using xUnit
2. Load the assembly in Gallio (v3.4) Icarus
3. Run the loaded test suite library
4. View "Test Results" window

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

The expected output is the correct number of the test cases (3) and its results 
in the "Test Results" window.

Instead, there is one less test case. Results of just two test cases are 
visible.

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

Version: 3.4.0.0
Operating system: Windows 7

Please provide any additional information below.

Attached is a screenshot that depicts the problem.

Original issue reported on code.google.com by spsofia...@gmail.com on 9 Jan 2013 at 12:40

Attachments:

GoogleCodeExporter commented 8 years ago
As a quick fix, we could prevent the Root node from appearing in the test 
results window. Then, all tests appear correctly.
Specifically, the condition to check if node is Root can be added in the 
following foreach loop:

    foreach (var tsr in testStepRuns)
    {
        if (!node.TestKind.Equals("Root"))
            AddTestStepRun(node.TestKind, tsr, indentCount);
    }

FYI, the above loop is located inside the implementation of the 
UpdateTestResults(TestTreeNode node, int indentCount) method of the 
Gallio.Icarus\TestResults\TestResultsController.cs file.

Original comment by spsofia...@gmail.com on 16 Jan 2013 at 11:01