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

add TestNG results to jtreg output

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Rejected
    • Icon: P4 P4
    • None
    • jtreg4.2
    • tools
    • None

      I just fixed a problem in my TestNG tests that was masked by jtreg that I was completely unaware of until someone tried to modify a test to intentionally make it fail, it wasn't actually running any tests (due to the annotated test method not being public).

      It would be helpful if jtreg could include the TestNG result summary in it's test results output so the user can see how many tests are actually being run.

      For example, right now we have:
      --------------------------------------------------
      TEST: unit/jdk.plugin/sun/plugin2/util/SystemUtilTest.java
        build: 0.006 seconds
        testng: 1.094 seconds
      TEST RESULT: Passed. Execution successful
      --------------------------------------------------

      Something more useful might be:
      --------------------------------------------------
      TEST: unit/jdk.plugin/sun/plugin2/util/SystemUtilTest.java
        build: 0.006 seconds
        testng: 1.094 seconds
        testng results: Total tests run: 1, Failures: 0, Skips: 0
      TEST RESULT: Passed. Execution successful
      --------------------------------------------------

            Unassigned Unassigned
            ddehaven David Dehaven (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: