Where is TestNG report file when running Maven/Jenkins

10,803

Solution 1

Please configure project to use custom workspace by providing path of your test source location on remote machine.The reports will be generated inside your custom workspace folder only. Rest is just to add rest of the path in post build action ..\test-output\testng-results.xml

Solution 2

You have to add the post-build action "Publish TestNG Results" of the job. And as the "testng xml report pattern", give **/target/surefire-reports/testng-results.xml. That should show the results in the job's page.

Share:
10,803
ModdyFire
Author by

ModdyFire

Updated on August 02, 2022

Comments

  • ModdyFire
    ModdyFire almost 2 years

    I run TestNG using Maven. I'm trying now to use Jenkins' testng-plugin to see the results.

    When I run the tests in Eclipse, I get the file /test-output/testng-results.xml

    However I don't see such a file in my Jenkins agent. Where can I find it? and if it is not created, how do I create it?