How do you publish test results in Jenkins, GitHub Actions and GitLab?
IntermediateConceptTesting and Quality Gates
Answer
All consume JUnit XML. Jenkins: junit 'target/surefire-reports/*.xml'. GitLab: artifacts: reports: junit: report.xml shows results in the MR. GitHub Actions has no native test tab; use a reporter action (such as dorny/test-reporter) or write a summary to $GITHUB_STEP_SUMMARY, and upload the XML as an artifact.
More on Testing and Quality Gates
What is the testing pyramid?BeginnerWhat is the difference between unit, integration, and end-to-end tests?BeginnerWhat are smoke tests and sanity tests in a deployment pipeline?IntermediateWhat is code coverage and is a high percentage a good target?IntermediateWhat is a quality gate in SonarQube?IntermediateHow do you integrate SonarQube into a CI pipeline and make it block on gate failure?Intermediate