Ticket #384 (closed enhancement: fixed)
Add integration tests using maven failsafe plugin
| Reported by: | fxp | Owned by: | fxp |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | General | Version: | |
| Keywords: | Cc: |
Description
Add tests on a running GeoNetwork node. Tests could be called on any Jeeves services. A utility class is defined to:
- easily run request and retrieve response as String or XML
- login
- load samples
- clean catalogue
3 phases:
- Pre-integration-test : start Jetty
- Integration-test : run tests
- Post-integration-test : stop Jetty
Integration tests are in: src/test/java/itest/**
Run test using:
mvn verify
Generate report using (include unit tests and integration tests):
mvn surefire-report:report
Links:
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

