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

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

Open
GoogleCodeExporter opened this issue Apr 23, 2015 · 1 comment
Open

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 10 Jan 2013 at 3:33

Attachments:

@kkarthiksw
Copy link

Is this an expected behavior?, i see the same behavior mention in the ticket.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants