From the course: Git for Teams

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Automating units tests for quality assurance

Automating units tests for quality assurance - Git Tutorial

From the course: Git for Teams

Automating units tests for quality assurance

- [Instructor] CI pipelines can automate your team's quality assurance processes. For example a pipeline can execute unit tests on demand with each commit, reducing the workload placed upon your team. For this lesson we'll continue working with GitLab Runner to build our simple Java project. At this point, the codes in a GitLab repository and we have a simple pipeline established. Now we're going to expand that pipeline so that it can execute and report on our unit tests, as part of the build. The results of the test will determine whether or not the build passes or fails. In order to add the test as part of the build, we'll need to modify the gitlab-ci file. Within the file we already have our build job and we're going to go ahead and add another job named test. Within the test job, we're going to add a script property and then within that script property we're going to invoke the maven test goal. Now here's one of the…

Contents