Opened 5 years ago

Closed 4 years ago

Last modified 4 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 5 years ago.
Pom patch and test example on add samples and xml search service.

Download all attachments as: .zip

Change History (3)

Changed 5 years ago by fxp

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

comment:1 Changed 4 years ago by fxp

  • Resolution set to fixed
  • Status changed from new to closed

comment:2 Changed 4 years ago by fxp

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

Note: See TracTickets for help on using tickets.