You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sbrannen
changed the title
Incorrect order on print statements when using @Suite/@BeforeSuite
Incorrect order of print statements when using @Suite and @BeforeSuiteOct 5, 2024
Congratulations on raising your first issue for JUnit 5! 👍
When I run your example in Eclipse IDE, I get the following output on the console.
before suite
testing : 42
after suite
And since you also see testing : 42 instead of testing : 0 in IntelliJ, I assume that the different console output you see is perhaps related to how IntelliJ handles/redirects System.out.
In light of that, I am closing this issue, but feel free to raise an issue directly in the IntelliJ IDEA issue tracker.
sbrannen
changed the title
Incorrect order of print statements when using @Suite and @BeforeSuite
Incorrect order of print statements when using @Suite and @BeforeSuite with IntelliJ IDEA
Oct 5, 2024
I'm using
junit-bom
:And I have two simple classes:
and
If run
MySuite
from IntelliJ (latest version available: Build #IU-241.19072.14, built on August 8, 2024), I get such an output:While logically everything is correct, the order of the output is not:
before suite
should come beforetesting: 42
.The interesting part is that if I run the package where this
MySuite
resides, the output is now in the correct order.Is this expected?
Thank you.
The text was updated successfully, but these errors were encountered: