Difference between revisions of "Opentaps 2 Automated Testing"

From Opentaps Wiki
Jump to navigationJump to search
m (Protected "Opentaps 2 Automated Testing": Sysop page [edit=sysop:move=sysop])
(opentaps 2 Automated Testing)
Line 2: Line 2:
  
 
opentaps 2 supports both unit and 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/

Revision as of 07:20, 26 January 2012

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/