Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐞: There is no test body in the report after executing the test code in the main directory and generating all items #1126

Open
1 task done
3255834892 opened this issue Sep 13, 2024 · 1 comment
Labels
triage type:bug Something isn't working

Comments

@3255834892
Copy link

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

org.apache.maven.plugins
maven-surefire-plugin
3.2.5

true

-Dfile.encoding=${project.build.sourceEncoding}
-javaagent:"${settings.localRepository}/org/aspectj/aspectjweaver/${aspectj.version}/aspectjweaver-${aspectj.version}.jar";



listener
io.qameta.allure.testng.AllureTestNg





org.aspectj
aspectjweaver
${aspectj.version}


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

  • I agree to follow this project's Code of Conduct
@3255834892 3255834892 added triage type:bug Something isn't working labels Sep 13, 2024
@3255834892
Copy link
Author

I'm not sure if the allure framework doesn't support main, please advise. Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant