Open AhmdZanoon opened 1 year ago
To workaround a bug you can downgrade this dep:
<dependency>
<groupId>io.qameta.allure</groupId>
<artifactId>allure-generator</artifactId>
<version>2.21.0</version>
</dependency>
It also makes sense to move this issue to the main project
To workaround a bug you can downgrade this dep:
<dependency> <groupId>io.qameta.allure</groupId> <artifactId>allure-generator</artifactId> <version>2.21.0</version> </dependency>
It also makes sense to move this issue to the main project @dr29bart you mean report it again , or you already did it
Due to performance issues, we dropped support for recursive containers in Allure Report (it was never supported in Allure TestOps).
We must use separate containers for each test fixture to fix the issue.
dear @baev any update on this one , or any missing data from my side , i'm still using version 2.21 as a workaround and i'm not able to generate single file because of this , your support is highly appreciated
Here is a workaround: by using custom listener create links between suite and test classes:
|_suite
|__textContext
|____TestClass
|_______testMethod
import io.qameta.allure.Allure;
import java.util.Objects;
import org.testng.ITestListener;
import org.testng.ITestResult;
import org.testng.annotations.AfterSuite;
import org.testng.annotations.Listeners;
import org.testng.annotations.Test;
@Listeners(SampleTest.AllureTestNGListener.class)
public class SampleTest {
@AfterSuite
public void after() {
Allure.step("after step");
}
@Test
public void test() {
Allure.step("test step");
}
public static class AllureTestNGListener implements ITestListener {
@Override
public void onTestStart(final ITestResult testResult) {
Allure.getLifecycle().getCurrentTestCase()
.ifPresent(testId -> {
var suite = testResult.getTestContext().getSuite();
var suiteId = Objects.toString(suite.getAttribute("ALLURE_UUID"));
Allure.getLifecycle().updateTestContainer(suiteId, container -> container.getChildren().add(testId));
});
}
}
}
What happened?
after suite method not shown in allure report since version 2.22 for example below code
latest version
version 2.21
What Allure Integration are you using?
allure-testng
What version of Allure Integration you are using?
2.24.0
What version of Allure Report you are using?
2.24.0
Code of Conduct