tuscany-itest:test

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:

  • Requires a Maven 2.0 project to execute.
  • Automatically executes within the lifecycle phase: integration-test

Required Parameters

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.

Optional Parameters

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.

Parameter Details

reportsDirectory

The directory where reports will be written.

  • Type: java.io.File
  • Required: No
  • Expression: ${project.build.directory}/surefire-reports

systemScdl

The location of the SCDL that configures the Apache Tuscany runtime. This allows the default runtime configuration supplied in this plugin to be overridden.

  • Type: java.net.URL
  • Required: No

testClassesDirectory

The directory containing generated test classes of the project being tested.

  • Type: java.io.File
  • Required: Yes
  • Expression: ${project.build.testOutputDirectory}

testComponentName

The name of the component that will be implemented by the test harness composite.

  • Type: java.lang.String
  • Required: Yes
  • Expression: testHarness

testDomain

The SCA domain in which to deploy the test components.

  • Type: java.lang.String
  • Required: Yes
  • Expression: itest://localhost/testDomain/

testScdl

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.

  • Type: java.io.File
  • Required: No
  • Expression: ${project.build.testOutputDirectory}/itest.scdl

trimStackTrace

Whether to trim the stack trace in the reports to just the lines within the test, or show the full trace.

  • Type: boolean
  • Required: No
  • Expression: ${trimStackTrace}
  • Default: true