Ticket #384 (closed enhancement: fixed)

Opened 4 years ago

Last modified 4 years ago

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

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

Change History

Changed 4 years ago by fxp

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

Changed 4 years ago by fxp

  • status changed from new to closed
  • resolution set to fixed

r7076

Changed 4 years ago by fxp

Use mvn clean install -DskipTests? to skip integration tests.

Note: See TracTickets for help on using tickets.