Automated unit testing stands as a cornerstone for upholding software code's quality and dependability. Within this context, Salus offers an advanced framework that seamlessly integrates automated unit testing into CI/CD pipelines. The unit testing phase within the Salus pipeline takes on the responsibility of executing a suite of automated unit tests on the codebase.

The Salus platform utilizes provided testing commands to carry out unit tests, collecting and reporting test results, and integrating these tests into the development workflow to maintain code quality and facilitate collaboration among developers.

Enable Automated Unit Testing

In your project’s settings or during project creation, you'll find a “Test Command" field. This field allows you to define the specific command that should be executed for running unit tests. It's worth noting that this step is optional; if you leave the field empty, Salus will automatically employ a widely recognized testing framework corresponding to the programming language used in your project.

Screen Shot 2023-09-04 at 08.38.20.png

Additionally, while creating a Release Configuration, you have the option to enforce the Test Stage. This choice plays a crucial role in determining whether the project proceeds with deployment. If the Test Stage encounters failures, it acts as a safeguard, preventing the deployment from taking place.

Screen Shot 2023-09-04 at 08.39.14.png

View Test Report(s)

To access your test report, begin by selecting a pipeline. This selection will lead you to the detailed view of the pipeline, referred to as the "Pipeline Details" page.

Within the Pipeline Details page, navigate to the "Tests" tab. Here, you'll find a comprehensive breakdown of the test results, allowing you to assess the depth of your test coverage and the robustness of your codebase with ease.

Screen Shot 2023-09-04 at 08.40.06.png