2016/05/28 - Apache Tuscany has been retired.

For more information, please explore the Attic.

HomeApache Tuscany Docs 2.x > Index > Development Guides > Running OASIS Spec Tests in a OSGi environment
 Apache Tuscany Docs 2.x > Index > Development Guides > Running OASIS Spec Tests in a OSGi environment Tuscany Home | User List | Dev List | Issue Tracker  
Table of Contents

The OASIS SCA Spec Tests are designed to run in a OSGi environment and below are some configuration necessary to properly import/run/debug the tests in Eclipse PDE environment

Generate Eclipse IDE project files

   mvn -Peclipse

To facilitate debug, use the following commands:

1) To generate sources for the Tuscany 2.x modules

mvn source:jar under sca-java-2.x/trunk/modules

2)To download source files, please use the following command

mvn -Peclipse -DdownloadSources=true

Configure TUSCANY_HOME pointing to where Tuscany distribution is available

   export TUSCANY_HOME=<tuscany checkout>/distribution/all/target/apache-tuscany-sca-all-2.0-SNAPSHOT.dir/tuscany-sca-2.0-SNAPSHOT

Optionally, you could also configure this as an VM argument on the Eclipse run configuration

-DTUSCANY_HOME=/Users/lresende/opensource/apache/tuscany/java-sca-2.x/distribution/all/target/apache-tuscany-sca-all-2.0-SNAPSHOT.dir/tuscany-sca-2.0-SNAPSHOT

Configure contribution location

There are various files containing the contribution location necessary to run the tests, these files are:

sca-assembly/Test_Client/src/main/resources/oasis-sca-tests.properties
sca-java-caa/Test_Client_JavaCAA/src/main/resources/oasis-sca-tests.properties
sca-java-ci/Test_Client_JavaPOJO/src/main/resources/oasis-sca-tests.properties
sca-policy/Test_Client/src/main/resources/oasis-sca-tests.properties

although it's currently configured with a relative path, you might need to configure the location based on your system

org.oasis.sca.tests.assembly.contribution.location=../%1/target/%1.zip