Test class logs are attached to all test cases in given test class #2278
-
Describe the BugTest class Suppose that In the Allure report for It's very unintuitive, that a test method which passes ( Steps to Reproduce
@Test
public void failingTest1(){
System.out.println("failing11");
assertFalse("MessageAssertFalse", true);
System.out.println("failing12");
}
@Test
public void failingTest2(){
System.out.println("failing21");
assertEquals("allure", "all");
System.out.println("failing22");
}
@Test
public void passingTest(){
System.out.println("passing1");
assertTrue(true);
System.out.println("passing2");
}
Expected Behaviour
Screenshots or Additional ContextWhat Language are you using?Java What Framework/Allure Integration you are using?What version of Allure Integration you are using?What version of Allure Report you are using?2.25.0 Code of Conduct
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
The issue is that JUnit XML stores system output files per class. So, there is nothing Allure can do about it. Why do you use |
Beta Was this translation helpful? Give feedback.
There is no published schema (at least officially), and in fact, we are already supporting different dialects. Some frameworks may store log files in similar named files (by class name) but with a
.txt
extension. But I'm not aware of someone doing that except for Maven Surefire. At least in JUnit 5, the legacy reporter only produces XML files.Allure itself supports JUnit.XML, XUnit2.Xml, XCTest and TRX results. However, all of these formats are usually quite limited in terms of the amount of stored data. That's why Allure provides inte…