An exception in a DataProvider method does not result in the Test being reported as a failure.
See the attached .jtr file.
The DataProvider threw and exception and the corresponding test was flagged as skipped.
See Lines 633 and 981.
The total of Failures indicated the failures but over all the Test was successful. (See Line 1037)
The tail of the .jtr file is:
===============================================
java/time/tck/java/time/chrono/TCKJapaneseChronology.java
Total tests run: 80, Failures: 2, Skips: 0
===============================================
----------System.err:(1/15)----------
STATUS:Passed.
result: Passed. Execution successful
test result: Passed. Execution successful
See the attached .jtr file.
The DataProvider threw and exception and the corresponding test was flagged as skipped.
See Lines 633 and 981.
The total of Failures indicated the failures but over all the Test was successful. (See Line 1037)
The tail of the .jtr file is:
===============================================
java/time/tck/java/time/chrono/TCKJapaneseChronology.java
Total tests run: 80, Failures: 2, Skips: 0
===============================================
----------System.err:(1/15)----------
STATUS:Passed.
result: Passed. Execution successful
test result: Passed. Execution successful
- relates to
-
CODETOOLS-7901747 jtreg treats TestNG Skip status as failure.
-
- Resolved
-