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

jtreg should report a more meaningful error when it filters the tests if any of its required modules is not observable.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • tools
    • None

      While working on the removal of the Java EE modules and trying to work through which tests need to be updated because of this, I encountered situations where it was not clear as to why a jtreg test was not being run:

      ------------
      $ make run-test TEST="open/test/jdk/java/lang/StackTraceElement/SerialTest.java"
      Building target 'run-test' in configuration 'macosx-x64'
      Test selection 'open/test/jdk/java/lang/StackTraceElement/SerialTest.java', will run:
      * jtreg:open/test/jdk/java/lang/StackTraceElement/SerialTest.java

      Running test 'jtreg:open/test/jdk/java/lang/StackTraceElement/SerialTest.java'
      Test results: no tests selected
      Report written to /Users/ljanders/Documents/hg-workspaces/openjdk10/remove-javaee/build/macosx-x64/test-results/jtreg_open_test_jdk_java_lang_StackTraceElement_SerialTest_java/html/report.html
      Results written to /Users/ljanders/Documents/hg-workspaces/openjdk10/remove-javaee/build/macosx-x64/test-support/jtreg_open_test_jdk_java_lang_StackTraceElement_SerialTest_java
      Finished running test 'jtreg:open/test/jdk/java/lang/StackTraceElement/SerialTest.java'
      Test report is stored in /Users/ljanders/Documents/hg-workspaces/openjdk10/remove-javaee/build/macosx-x64/test-results/jtreg_open_test_jdk_java_lang_StackTraceElement_SerialTest_java

      ==============================
      Test summary
      ==============================
         TEST TOTAL PASS FAIL ERROR
         jtreg:open/test/jdk/java/lang/StackTraceElement/SerialTest.java
                                                               0 0 0 0
      ==============================

      -----------
      Instead of saying that 'no test was selected', it would be more beneficial to indicate that the test was filtered out due to the lack of the specified module being available.

            Unassigned Unassigned
            lancea Lance Andersen
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: