Integration-tests an SCA composite by running it in local copy of Apache Tuscany and calling JUnit-based test components to exercise it.
Mojo Attributes:
integration-test| Name | Type | Description |
|---|---|---|
| testClassesDirectory | File |
The directory containing generated test classes of the project being tested. |
| testComponentName | String |
The name of the component that will be implemented by the test harness composite. |
| testDomain | String |
The SCA domain in which to deploy the test components. |
| Name | Type | Description |
|---|---|---|
| reportsDirectory | File |
The directory where reports will be written. |
| systemScdl | URL |
The location of the SCDL that configures the Apache Tuscany runtime. This allows the default runtime configuration supplied in this plugin to be overridden. |
| testScdl | File |
The location if the SCDL that defines the test harness composite. The source for this would normally be placed in the test/resources directory and be copied by the resource plugin; this allows property substitution if required. |
| trimStackTrace | boolean |
Whether to trim the stack trace in the reports to just the lines within
the test, or show the full trace. Default value is true. |
The directory where reports will be written.
java.io.FileNo${project.build.directory}/surefire-reportsThe location of the SCDL that configures the Apache Tuscany runtime. This allows the default runtime configuration supplied in this plugin to be overridden.
java.net.URLNoThe directory containing generated test classes of the project being tested.
java.io.FileYes${project.build.testOutputDirectory}The name of the component that will be implemented by the test harness composite.
java.lang.StringYestestHarnessThe SCA domain in which to deploy the test components.
java.lang.StringYesitest://localhost/testDomain/The location if the SCDL that defines the test harness composite. The source for this would normally be placed in the test/resources directory and be copied by the resource plugin; this allows property substitution if required.
java.io.FileNo${project.build.testOutputDirectory}/itest.scdlWhether to trim the stack trace in the reports to just the lines within the test, or show the full trace.
booleanNo${trimStackTrace}true