I called the code in the test directory in the main directory class, but found that when executing the jar package, it must be executed in the pom directory. Therefore, I did not use mvn to execute the test code and generate the report. Instead, I executed and generated it using the cmd command. After generating the report, I found that there was no test body in the report.
This is my Maven Surefire plugin: tstetng-version:7.4
This is the code I called for testing:
Thread taskThread = new Thread(() -> {
TestNG testng = new TestNG();
testng.setTestClasses(new Class[] { TestRunnertest.class });
testng.addListener(new AllureTestNg());
testng.run();
new Thread(() -> executeMavenCommand("allure serve target/allure-results", "Allure")).start();
What Allure Integration are you using?
allure-assertj, allure-testng
What version of Allure Integration you are using?
2.25.0
What version of Allure Report you are using?
2.25.0
Code of Conduct
[X] I agree to follow this project's Code of Conduct
What happened?
I called the code in the test directory in the main directory class, but found that when executing the jar package, it must be executed in the pom directory. Therefore, I did not use mvn to execute the test code and generate the report. Instead, I executed and generated it using the cmd command. After generating the report, I found that there was no test body in the report. This is my Maven Surefire plugin: tstetng-version:7.4
This is the code I called for testing:
Thread taskThread = new Thread(() -> { TestNG testng = new TestNG(); testng.setTestClasses(new Class[] { TestRunnertest.class }); testng.addListener(new AllureTestNg()); testng.run(); new Thread(() -> executeMavenCommand("allure serve target/allure-results", "Allure")).start();
What Allure Integration are you using?
allure-assertj, allure-testng
What version of Allure Integration you are using?
2.25.0
What version of Allure Report you are using?
2.25.0
Code of Conduct