Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
20 lines (19 sloc)
728 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Script for testing coverage locally | |
PYTHON=python | |
PIP="python -m pip" | |
./resolve.sh | |
$PYTHON setup.py test_java | |
$PIP install gcovr pytest-cov jedi | |
$PYTHON setup.py --enable-coverage --enable-build-jar build_ext --inplace | |
$PYTHON -m pytest -rsx -v test/jpypetest \ | |
--cov-report=xml:coverage_py.xml \ | |
--cov-report=html:build/coverage/python \ | |
--cov=jpype \ | |
--classpath="build/classes" --jacoco --checkjni | |
java -jar lib/org.jacoco.cli-0.8.5-nodeps.jar report build/coverage/jacoco.exec \ | |
--classfiles build/classes/ \ | |
--html build/coverage/java \ | |
--sourcefiles native/java | |
mkdir build/coverage/cpp | |
gcovr -r . --html-details -o build/coverage/cpp/jpype.html --exclude-unreachable-branches --exclude-throw-branches |