olamy opened a new issue, #3661:
URL: https://github.com/apache/maven-surefire/issues/3661

   ### Affected version
   
   3.7.0-SNAPSHOT (since #3651)
   
   ### Bug description
   
   In a JUnit `@Suite` run, output printed outside the tests is missing from 
the XML reports. For example, output from `@BeforeSuite`:
   
   ```java
   @Suite
   @SelectClasses(ATest.class)
   public class MySuite {
       @BeforeSuite
       static void migrate() {
           System.out.println("db migrated");
       }
   }
   ```
   
   `db migrated` shows on the console, but not in `TEST-ATest.xml`. In 3.6.1 it 
was there.
   
   Since #3651 each test class gets its own output buffer. The suite gets one 
too, but none of its tests are reported under the suite itself, so its buffer 
is never written.
   
   Surefire can't tell a class inside a suite from a class running in parallel 
next to it. The JUnit provider knows, so the fix probably needs the provider to 
pass that on.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to