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.File
No
${project.build.directory}/surefire-reports
The 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.URL
No
The directory containing generated test classes of the project being tested.
java.io.File
Yes
${project.build.testOutputDirectory}
The name of the component that will be implemented by the test harness composite.
java.lang.String
Yes
testHarness
The SCA domain in which to deploy the test components.
java.lang.String
Yes
itest://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.File
No
${project.build.testOutputDirectory}/itest.scdl
Whether to trim the stack trace in the reports to just the lines within the test, or show the full trace.
boolean
No
${trimStackTrace}
true