Configuring JUnit

Our sample application has JUnit test cases, and to execute them, we need to configure JUnit-related settings in the build job configuration:

  1. Under Post-build Actions, select Publish JUnit test result report.
  2. Provide a path for Test report XMLs based on the workspace.
  3. Click on Apply and then click on Save:

    Configuring JUnit

  4. After you've configured the JUnit settings for the build, wait for a scheduled build execution, or click on Build Now.
  5. Verify the build status on the Jenkins dashboard and you will see the Test Result link with a small summary. Click on Test Result:

  6. Verify all test execution statuses package wise. The page also provides information ...

Get DevOps for Web Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.