Recall & Review
beginner
What is the purpose of publishing JUnit test reports in Jenkins?
Publishing JUnit test reports in Jenkins helps to visualize test results, track test failures, and monitor test trends over time in a clear and organized way.
Click to reveal answer
beginner
Which Jenkins plugin is commonly used to publish JUnit test reports?
The 'JUnit Plugin' is commonly used in Jenkins to publish and display JUnit test reports.
Click to reveal answer
beginner
What file format does Jenkins expect for JUnit test reports?
Jenkins expects JUnit test reports in XML format, usually named with a pattern like '**/target/surefire-reports/*.xml'.
Click to reveal answer
intermediate
How do you configure Jenkins to publish JUnit test reports after a build?
In the Jenkins job configuration, add a 'Post-build Action' called 'Publish JUnit test result report', then specify the path to the XML report files.
Click to reveal answer
intermediate
What happens if Jenkins cannot find any JUnit XML report files during publishing?
If Jenkins cannot find the specified JUnit XML files, it will mark the test report publishing step as failed or unstable, and no test results will be shown.
Click to reveal answer
What is the main benefit of publishing JUnit test reports in Jenkins?
✗ Incorrect
Publishing JUnit test reports helps visualize test results and failures clearly in Jenkins.
Which file pattern is typically used to locate JUnit XML reports in Jenkins?
✗ Incorrect
JUnit XML reports are usually found in the 'target/surefire-reports' directory with '*.xml' files.
Where do you add the JUnit test report publishing step in Jenkins job configuration?
✗ Incorrect
JUnit test report publishing is added as a Post-build Action in Jenkins.
What plugin must be installed to publish JUnit test reports in Jenkins?
✗ Incorrect
The JUnit Plugin is required to publish JUnit test reports in Jenkins.
If Jenkins does not find any JUnit XML files, what is the likely result?
✗ Incorrect
Without XML files, Jenkins cannot publish test results and may mark the step as failed or unstable.
Explain how to configure Jenkins to publish JUnit test reports after running tests.
Think about where in the Jenkins job settings you add steps after the build.
You got /5 concepts.
Describe what information Jenkins shows when JUnit test reports are published.
Consider what you want to see after running tests to understand their results.
You got /5 concepts.