Add helm unittest example for the CI test report docs
What does this MR do and why?
This merge request introduces examples of generating unit test reports using helm-unittest
.
The purpose of this MR is to provide clear instructions and code snippets for generating test reports for helm-unittest
.
Target: https://docs.gitlab.com/ee/ci/testing/unit_test_report_examples.html
How to set up and validate locally
Click to expand
Please follow these steps to set up and validate the changes locally:- Install docker:
Tip: preview script steps before running
You can run the script with the
--dry-run
option to learn what steps the script will run when invoked
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh ./get-docker.sh --dry-run
This example downloads the script from https://get.docker.com/ and runs it to install the latest stable release of Docker on Linux:
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
Executing docker install script, commit: 7cae5f8b0decc17d6571f9f52eb840fbc13b2737
<...>
You have now successfully installed and started Docker Engine. The docker service starts automatically on Debian based distributions.
- Download Helm Example project with unittests:
git clone https://github.com/helm-unittest/helm-unittest.git
cd helm-unittest/test/data/v3/basic
- Run command:
docker run -ti --rm -v $(pwd):/apps helmunittest/helm-unittest:latest -t junit -o report.xml -f tests/*[._]test.yaml .
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.