0
0
Jenkinsdevops~5 mins

JUnit test report publishing in Jenkins - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
ATo write new test cases
BTo speed up the build process
CTo deploy the application automatically
DTo see test results and failures clearly
Which file pattern is typically used to locate JUnit XML reports in Jenkins?
A**/target/surefire-reports/*.xml
B**/*.html
C**/build.log
D**/*.json
Where do you add the JUnit test report publishing step in Jenkins job configuration?
ABuild Environment
BBuild Triggers
CPost-build Actions
DSource Code Management
What plugin must be installed to publish JUnit test reports in Jenkins?
AJUnit Plugin
BGit Plugin
CDocker Plugin
DSlack Notification Plugin
If Jenkins does not find any JUnit XML files, what is the likely result?
AJenkins restarts
BTest report publishing fails or shows no results
CBuild automatically passes
DTests are rerun automatically
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.