This is a Java project serving as a brief demonstration for Unit Testing for the needs of the lab tutorials of the Software Engineering in Practice course. It makes use of Maven to automate the build process of the two available modules.
This project requires:
- Java JDK version 1.7 (or later) and
- Maven 3.3 (or later)
In order to build the project execute the following Maven command:
mvn clean install jacoco:report
This command will also generate a report of the code coverage produced by JaCoCo. The report will be located in the following path for each module:
target/site/jacoco
To simply run the unit tests of the project, execute the following Maven command:
mvn test
Important: Note that only classes with a Test
suffix located in the src/test
will be executed and reported as Tests.
To simply run the unit tests of the project, execute the following Maven command:
mvn test jacoco:report
This projects utilizes TravisCI services in other to test and build the application upon each git-push
in the remote repository.
There are multiple build environments in which the application will be tested and build. You can check these options under the jdk
tag in the .travis.yml
file.
After each build, the badge is updated with the corresponding build status, green
for passes and red
for failures.
The repository is connected only with JaCoCo