Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#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)

itest.patch (13.1 KB ) - added by fxp 14 years ago.
Pom patch and test example on add samples and xml search service.

Download all attachments as: .zip

Change History (3)

by fxp, 14 years ago

Attachment: itest.patch added

Pom patch and test example on add samples and xml search service.

comment:1 by fxp, 14 years ago

Resolution: fixed
Status: newclosed

comment:2 by fxp, 14 years ago

Use mvn clean install -DskipTests to skip integration tests.

Note: See TracTickets for help on using tickets.