From 0b7b8f59c28a7f2c0c4647d45c04efa04a57baeb Mon Sep 17 00:00:00 2001 From: Carlton Whitehead Date: Sun, 26 Nov 2017 21:48:46 -0500 Subject: [PATCH] Code coverage reporting with JaCoCo and Coveralls, closes #4 (#14) * Code coverage reporting with JaCoCo and Coveralls * Raise the TestFX setup timeout on Travis CI Macs from 2.5 to 10 seconds --- .travis.yml | 5 ++++- pom.xml | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 20b1ac0..a9486dc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,7 +10,7 @@ matrix: - os: osx osx_image: xcode8.2 - env: _JAVA_OPTIONS="-Djava.awt.headless=true -Dtestfx.robot=glass -Dtestfx.headless=true -Dprism.order=sw -Dprism.text=t2k -Dtestfx.setup.timeout=2500" + env: _JAVA_OPTIONS="-Djava.awt.headless=true -Dtestfx.robot=glass -Dtestfx.headless=true -Dprism.order=sw -Dprism.text=t2k -Dtestfx.setup.timeout=10000" # enable Java 8u45+, see https://github.com/travis-ci/travis-ci/issues/4042 addons: @@ -31,6 +31,9 @@ before_script: script: - mvn verify +after_success: + - mvn clean test jacoco:report coveralls:report + cache: directories: - $HOME/.m2 \ No newline at end of file diff --git a/pom.xml b/pom.xml index 94ce0a9..3fb8681 100644 --- a/pom.xml +++ b/pom.xml @@ -102,6 +102,24 @@ org.coner.worker.WorkerAppKt + + org.jacoco + jacoco-maven-plugin + 0.7.9 + + + prepare-agent + + prepare-agent + + + + + + org.eluder.coveralls + coveralls-maven-plugin + 4.3.0 +