#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 (1)
Note:
See TracTickets
for help on using tickets.
Pom patch and test example on add samples and xml search service.