Jenkins - How to find out which tests failed repeatedly?

后端 未结 2 783
青春惊慌失措
青春惊慌失措 2021-02-13 12:05

I am new to CI & Jenkins. I have a Java project which runs Testng based automated tests. The tests run regularly as a job in Jenkins. Sometimes, the job fails repeatedly for

2条回答
  •  青春惊慌失措
    2021-02-13 12:37

    You can use the Test Result Analyzer plugin from Jenkins to analyse the trends of tests.

    Test Result Analyzer plugin

    Video Tutorial from youtube

    Installation:

    1. In Jenkins Dashboard, click on Manage Jenkins
    2. From the menu select Manage Plugins
    3. Click on Available tab and input analyzer in the Filter search box
    4. Click the check box to the left of Test Results Analyzer and click the Install without restart button

    Usage:

    1. Go to the project and click on Configure
    2. Goto Post-build Actions section and select Publish JUnit test result report from the Add post-build action dropdown
    3. In the Test report XMLs field provide the path of the TestNg/JUnit xml in the project. For example - **/target/test-results/*.xml in my case
    4. Save the configuration
    5. Then after a successful build, goto your project, and click on the Test Results Analyzer on the left side menu

提交回复
热议问题