This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 175337 - Incorrect test result using dataproviders
Summary: Incorrect test result using dataproviders
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: TestNG (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker with 1 vote (vote)
Assignee: Lukas Jungmann
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-23 20:56 UTC by lujop
Modified: 2011-12-22 01:10 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lujop 2009-10-23 20:56:59 UTC
If for one test I use a DataProvider and the test runs several times if some are incorrect and some correct the runner 
shows a correct result.

I tested with a DataProvider returning two data objects, if first pass the test and the second fails the graphical test 
result panel show that all is ok (The output text shows the results correctly 1 ok 1 error)
Comment 1 rjsang 2011-12-15 00:42:49 UTC
I would like to report that this is still a problem in Netbeans 7.0.1.

The graphical test output (the green bar) reports that all tests passed but checking of the output tab reveals failures.
Comment 2 Lukas Jungmann 2011-12-22 01:10:14 UTC
Fixed. Each run is represented by its own node, so results should be more accurate now.