Skip to content
This repository has been archived by the owner on Aug 13, 2021. It is now read-only.

ServiceIntegrationTestMojo

Andreas Schmitz edited this page Jan 7, 2013 · 1 revision

Service Integration Test Mojo

This mojo can be used to automatically test a .war project. If there's a deegree workspace included, it is scanned for configured services, which are then tested automatically (within limits). It's also possible to predefine requests and expected responses, which are then being tested as well.

The following configuration options are available:

  • testCapabilities: see if a GetCapabilities request against each configured service yields an exception (default is true)
  • testLayers: if a service named wms is configured, see if all advertised layers can be requested without exception (default is true)
  • testRequests: do request testing with src/test/requests/$file.{kvp,response} or src/test/requests/$file.{xml,response} pairs (default is true)
  • workspace: workspace directory, default is ${project.basedir}/src/main/webapp/WEB-INF/workspace/

Default phase is integration-test. Currently not in use by deegree.

<plugin>
  <groupId>org.deegree</groupId>
  <artifactId>deegree-maven-plugin</artifactId>
  <executions>
    <execution>
      <goals>
        <goal>test-services</goal>
      </goals>
    </execution>
  </executions>
</plugin>
Clone this wiki locally