Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-2111

Nested Tests reports are unordered

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Maven Surefire Plugin
    • None

    Description

      When Nested class are run, it's printed unordered.

      See logs:

      [INFO] -------------------------------------------------------
      [INFO]  T E S T S
      [INFO] -------------------------------------------------------
      [INFO] Running NestedExampleTest
      [INFO] Running NestedExampleTest$InnerTest
      [INFO] Running NestedExampleTest$InnerTest$InnerInnerTest
      [INFO] Running NestedExampleTest$InnerTest$InnerInnerTest$InnerInnerInnerTest
      [INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.405 s - in NestedExampleTest$InnerTest$InnerInnerTest$InnerInnerInnerTest
      [INFO] NestedExampleTest.test  Time elapsed: 0.12 s
      [INFO] NestedExampleTest.test2  Time elapsed: 0.001 s
      [INFO] NestedExampleTest$InnerTest.test  Time elapsed: 0.202 s
      [INFO] NestedExampleTest$InnerTest$InnerInnerTest.test  Time elapsed: 0.305 s
      [INFO] NestedExampleTest$InnerTest$InnerInnerTest$InnerInnerInnerTest.test  Time elapsed: 0.402 s
      [INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.717 s - in NestedExampleTest$InnerTest$InnerInnerTest
      [INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.923 s - in NestedExampleTest$InnerTest
      [INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.064 s - in NestedExampleTest
      

      It uses 1 event to run all tests, and 3 remaining events to print class timing.

      Is it possible to run each nest test in a separate event?

      Attachments

        Activity

          People

            Unassigned Unassigned
            fabriciorby Fabrício Yamamoto
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: