Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7900165

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • jtreg4.1
    • jtreg4.1
    • 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

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

              Created:
              Updated:
              Resolved: