O'Reilly logo

DevOps for Web Development by Mitesh Soni

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required