Exception in TestNG DataSource does not result in a reported test failure

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • jtreg4.1
    • Affects Version/s: jtreg4.1
    • Component/s: tools
    • None
    • b05
    • generic
    • generic

      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

            Assignee:
            Roger Riggs
            Reporter:
            Roger Riggs
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: