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

Improve per-class reporting of JUnit tests, in .jtr file

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • jtreg7.1
    • jtreg7.0
    • tools
    • None

      If I execute a TestNG test, the .jtr file contains a block of text like the following:

      ===============================================
      java/util/stream/test/org/openjdk/tests/java/util/stream/IterateTest.java
      Total tests run: 16, Passes: 16, Failures: 0, Skips: 0
      ===============================================

      or this:

      test org.openjdk.tests.java.util.stream.ConcatTest.testDoubleConcat(): success
      test org.openjdk.tests.java.util.stream.ConcatTest.testDoubleConcat(): success
      test org.openjdk.tests.java.util.stream.ConcatTest.testDoubleConcat(): success
      test org.openjdk.tests.java.util.stream.ConcatTest.testDoubleConcat(): success
      test org.openjdk.tests.java.util.stream.ConcatTest.testDoubleConcat(): success
      test org.openjdk.tests.java.util.stream.ConcatTest.testDoubleConcat(): success
      test org.openjdk.tests.java.util.stream.ConcatTest.testDoubleConcat(): success
      test org.openjdk.tests.java.util.stream.ConcatTest.testDoubleConcat(): success
      test org.openjdk.tests.java.util.stream.ConcatTest.testDoubleConcat(): success
      test org.openjdk.tests.java.util.stream.ConcatTest.testDoubleConcat(): success
      test org.openjdk.tests.java.util.stream.ConcatTest.testDoubleConcat(): success
      test org.openjdk.tests.java.util.stream.ConcatTest.testDoubleConcat(): success
      test org.openjdk.tests.java.util.stream.ConcatTest.testIntConcat(): success
      test org.openjdk.tests.java.util.stream.ConcatTest.testIntConcat(): success
      test org.openjdk.tests.java.util.stream.ConcatTest.testIntConcat(): success
      test org.openjdk.tests.java.util.stream.ConcatTest.testIntConcat(): success
      test org.openjdk.tests.java.util.stream.ConcatTest.testIntConcat(): success
      test org.openjdk.tests.java.util.stream.ConcatTest.testIntConcat(): success
      test org.openjdk.tests.java.util.stream.ConcatTest.testIntConcat(): success
      test org.openjdk.tests.java.util.stream.ConcatTest.testIntConcat(): success
      test org.openjdk.tests.java.util.stream.ConcatTest.testIntConcat(): success
      test org.openjdk.tests.java.util.stream.ConcatTest.testIntConcat(): success
      test org.openjdk.tests.java.util.stream.ConcatTest.testIntConcat(): success
      test org.openjdk.tests.java.util.stream.ConcatTest.testIntConcat(): success
      test org.openjdk.tests.java.util.stream.ConcatTest.testLongConcat(): success
      test org.openjdk.tests.java.util.stream.ConcatTest.testLongConcat(): success
      test org.openjdk.tests.java.util.stream.ConcatTest.testLongConcat(): success
      test org.openjdk.tests.java.util.stream.ConcatTest.testLongConcat(): success
      test org.openjdk.tests.java.util.stream.ConcatTest.testLongConcat(): success
      test org.openjdk.tests.java.util.stream.ConcatTest.testLongConcat(): success
      test org.openjdk.tests.java.util.stream.ConcatTest.testLongConcat(): success
      test org.openjdk.tests.java.util.stream.ConcatTest.testLongConcat(): success
      test org.openjdk.tests.java.util.stream.ConcatTest.testLongConcat(): success
      test org.openjdk.tests.java.util.stream.ConcatTest.testLongConcat(): success
      test org.openjdk.tests.java.util.stream.ConcatTest.testLongConcat(): success
      test org.openjdk.tests.java.util.stream.ConcatTest.testLongConcat(): success
      test org.openjdk.tests.java.util.stream.ConcatTest.testRefConcat(): success
      test org.openjdk.tests.java.util.stream.ConcatTest.testRefConcat(): success
      test org.openjdk.tests.java.util.stream.ConcatTest.testRefConcat(): success
      test org.openjdk.tests.java.util.stream.ConcatTest.testRefConcat(): success
      test org.openjdk.tests.java.util.stream.ConcatTest.testRefConcat(): success
      test org.openjdk.tests.java.util.stream.ConcatTest.testRefConcat(): success
      test org.openjdk.tests.java.util.stream.ConcatTest.testRefConcat(): success
      test org.openjdk.tests.java.util.stream.ConcatTest.testRefConcat(): success
      test org.openjdk.tests.java.util.stream.ConcatTest.testRefConcat(): success
      test org.openjdk.tests.java.util.stream.ConcatTest.testRefConcat(): success
      test org.openjdk.tests.java.util.stream.ConcatTest.testRefConcat(): success
      test org.openjdk.tests.java.util.stream.ConcatTest.testRefConcat(): success

      ===============================================
      java/util/stream/test/org/openjdk/tests/java/util/stream/ConcatTest.java
      Total tests run: 48, Passes: 48, Failures: 0, Skips: 0
      ===============================================

      It would be good for JUnit to provide an equivalent level of detail.

            cstein Christian Stein
            jjg Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: