Opentaps 2 Automated Testing
From Opentaps Wiki
Jump to navigationJump to search
opentaps 2 Automated Testing
opentaps 2 supports both unit and automated testing.
Running the tests
To run unit tests:
mvn -DskipTests=false verify
To run integration tests:
mvn -Dit verify
To run both:
mvn -DskipTests=false -Dit verify
Also when running unit tests one can chose to run only one test, for example:
mvn verify -DskipTests=false -Dtest=ValidationTest
where -Dtest=<name of the unit test classes (can be comma separated)>
Checking the tests results
Integration tests results can be checked in the maven output, but also each test output and the tests summary can be found at
./integration-tests/tests-run/target/failsafe-reports/
For unit tests, the output can be found for each module, for example at
./modules/notes/impl/tests/target/surefire-reports/