This project provides a framework to run JUnit test in a new JVM. It allows to retrieve results using serialization / deserialization.
- test: run JUnit test, the whole test class or specific test cases methods.
- coverage: run JaCoCo to compute the instruction coverage of the given test suite or by test methods.
- JVMArgs: can specify Java Virtual Machine Arguments
- workingDirectory: can specify where to launch the java process
- outputStream and errStream: can customize the output stream and the error stream of the java process.
- timeout: can specify a custom time out in milli second.
- blacklist: can discard test methods by their name among test classes.
- maven execution: can now executes the test using Maven. This allows users to have a complex build configured in their
pom.xml
.
- clone:
git clone https://github.com/STAMP-project/testrunner.git
- build resources:
cd testrunner/src/test/resources/test-projects/
mvn install
- build
testrunner
:
cd ../../../..
mvn install
Please, open an issue if you have any question / suggestion. Pull request are welcome! 😃
TestRunner is published under LGPL-3.0 (see Licence.md for further details).
TestRunner is partially funded by research project STAMP (European Commission - H2020)