Testing a workflow including automated tests and style checks for future courses.
A short description of the contents of the included folders.
lib- A collection of libraries: Hamcrest, JUnit and Checkstyle.src- Source code for application.test- Source code for unit tests.
A short description of the included files.
.gitignore- Specification of which files should not be tracked by git..travis.yml- Specification of what should be run on Travis CI and in what order.codecov.yml- Specification for Codecov.LICENSE- License of the source code.README.md- This file.build.xml- Ant-file with specifics for building, executing tests and running style check.sun_checks.xml- Sun Java code style rules fur checkstyle usage.
Ant is used to automate builds. The targets included in build.xml are:
build- Compiles source- and testfiles.checkstyle- Runs checkstyle according tosun_checks.xmlon all.java-files in thesrcdir.clean- Deletes theoutandreportdir thatinitgenerates.init- Creates theoutandreportdir.junit- Runs JUnit tests and checks coverage.report- Generates coverage data in XML-format.
The targets can be run with the command ant <target-name>.
This repository is using Travis CI to automatically run JUnit-tests and checkstyle. It can be monitored at travis-ci.org/martinlarsson/workflow-test.
Codecov is used to display coverage data from Java Code Coverage (JaCoCo). It can be monitored at codecov.io/gh/martinlarsson/workflow-test.