Skip to content
This repository was archived by the owner on Nov 21, 2017. It is now read-only.

Incorrect number of passed/failed methods in testNG report #108

@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?

The code below will result in 3 failed and 3 passed methods; but the report 
file will contain wrong data (see attached emailable-report).

public class TestClass {
    @DataProvider(name = "test1")
    public Object[][] createData1() {
     return new Object[][] {
       {new Integer(1)},
       {new Integer(2)},
       {new Integer(3)},
       {new Integer(4)},
       {new Integer(5)},
       {new Integer(6)},
     };
    }

    @Test(dataProvider = "test1")
    public void verifyData1(Integer i) {
        if (i%2 == 0)
            Assert.fail("failed");
    } 
}

What is the expected output? What do you see instead?
1.The list of failed tests should contain 3 entries.
2.The list of passed tests should contain 3 entries.
3. "# failed" cell value should be equal to 3 not to 6.

What version of the product are you using? On what operating system?
Reproduced against TestNG(6.8 and 6.9beta). Windows 7 x64.

Please provide any additional information below.
n/a

Original issue reported on code.google.com by acha...@gmail.com on 10 Jan 2013 at 3:33

Attachments:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions