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
{{ message }}
Repository navigation
Test Results tab display meaningless text - Ubuntu Dekstop 22 #1683
The following image is the output of test result in IntelliJ:
As we can see there are some println output, namely:
Learning Test LifeCycle
55
End of Test LifeCycle
Whereas, the image below show the output of test result tab in the VScode:
As we can see both image refer to the same class test namely BetaTest.
But, VScode doesn't print the same output as IntelliJ.
The text is also kinda mess and meaningless.
Is this working as per intended? Am I missing something here?
As stated in the title, I am running Ubuntu Desktop 22 with VScode 1.88.1.
The code below is a copy of BetaTest.java file:
packageio.artidata;
importorg.junit.jupiter.api.*;
classBetaTest {
staticintnumber = 14;
BetaTest() {
number *= 2;
System.out.println("Learning Test LifeCycle");
}
@BeforeAllstaticvoidmethod3() {
number += 11;
}
@BeforeEachvoidmethod2() {
number -= 4;
}
@AfterAllstaticvoidmethod4() {
number /= 3;
System.out.println("End of Test LifeCycle");
}
@AfterEachvoidmethod5() {
System.out.println(number);
}
@Testvoidmethod6() {
number += 9;
}
}
Activity
jdneo commentedon Apr 23, 2024
Duplicated with #1588