Exercise 4
Let’s add a new class Alphabet and its test class AlphabetTest to our project:
git merge origin/alpha-java
You should have the following file tree:
java
|_ pom.xml
|_ src
|_ main
| |_ java
| |_ fr
| |_ inria
| |_ sed
| |_ Alphabet.java
| |_ Sphere.java
|_ tst
|_ java
|_ fr
|_ inria
|_ sed
|_ AlphabetTest.java
|_ SphereTest.java
- Generate and visualize the corresponding coverage report
- Make what changes are necessary to achieve 100% test coverage (Hint: you may not need any additional tests)
- Check that you get the same results onn GitLab web site, in
CI / CD
,Jobs
.
Home | Java Home | << Java Previous - Code coverage | >> Java Next - Static analysis