From the course: Git for Teams
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
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 useful things about GitLab Runner. You can collect artifacts that…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
Continuous integration with Git1m 17s
-
(Locked)
Tools for continuous integration6m 27s
-
(Locked)
Install GitLab Runner3m 58s
-
(Locked)
Register GitLab Runner2m 51s
-
(Locked)
Building a CI pipeline5m 30s
-
(Locked)
Automating units tests for quality assurance4m 38s
-
(Locked)
Code quality with pipelines4m 29s
-
(Locked)
Building a DevOps foundation6m 8s
-
-
-