apache-tuscany/otest/newlayout
2011-12-09 13:26:35 +00:00
..
oasis-assembly-contributions Project for generating zip of assembly otest contributions for running in trunk compliance tests. 2010-09-15 16:29:31 +00:00
oasis-jcaa-contributions Add module for build JCAA test zip 2011-01-07 16:13:31 +00:00
oasis-jci-contributions Project for generating zip of jci otest contributions for running in trunk compliance tests. 2010-09-17 08:53:50 +00:00
oasis-jms-contributions Project for generating zip of ws otest contributions for running in trunk compliance tests. 2010-09-17 10:28:08 +00:00
oasis-policy-contributions Project for generating zip of policy otest contributions for running in trunk compliance tests. 2010-09-17 09:35:04 +00:00
oasis-ws-contributions Project for generating zip of ws otest contributions for running in trunk compliance tests. 2010-09-17 09:52:18 +00:00
tuscany-java-caa-test-runner Adjust expected errors to take account of policy changes where any default mayProvides intent is take into account 2011-10-19 08:41:25 +00:00
tuscany-java-ci-test-runner Changes to make the otest dev environment run from a completely clean repo 2011-07-05 12:07:19 +00:00
tuscany-jms-test-runner Clean up and minimize dependencies 2010-11-10 16:15:33 +00:00
tuscany-policy-test-runner Fix the message files to match the latest messages from Tuscany 2011-09-03 03:58:46 +00:00
tuscany-test-runner Fix the message files to match the latest messages from Tuscany 2011-09-03 03:58:46 +00:00
tuscany-ws-ri-test-runner Add a JAXWS RI based WS otest suite runner 2010-06-19 08:24:22 +00:00
tuscany-ws-test-runner correct various things to get the compliance tests running in the stand-alone environment 2011-09-01 15:34:23 +00:00
build.xml Update sca_variables.dtd file from oasis contribution 2010-08-25 18:01:06 +00:00
pom.xml TUSCANY-3993 - Apply Tom's change to point to the right snapshot repo. Thanks Tom. 2011-12-09 13:26:35 +00:00
README

Running the otests with Tuscany using Maven
===========================================

To get the OASIS compliance tests from SVN:

svn co https://svn.apache.org/repos/asf/tuscany/otest/newlayout/ otest

To run the tests:

cd otest
mvn

should build and run all of the spec otests

To run specific spec otests, the following profiles are available 

assembly : Run all Assembly spec otests
javacaa  : Run all SCA-J CAA spec otests
javaci   : Run all SCA-J CI spec otests
policy   : Run all Policy spec otests

To run a specific profile, use:

mvn -P<profile name>
mvn -Passembly

should build and run all of the Assembly spec otests

The file tuscany-test-runner\src\test\resources\oasis-sca-tests.properties configures the 
test environment. Currently you can run in either the Java standalone or OSGi runtimes
which is configured by the org.oasis.sca.tests.assembly.runtime_bridge property.

Running the otests with Tuscany using Eclipse
=============================================

For the Assembly tests:

cd otest
mvn eclipse:eclipse

import tuscany-test-runner into eclipse (tuscany-otests-asm-tests)
import sca-assembly/General into eclipse (General)
import sca-assembly/General_Java into eclipse (General_Java)

import which ever other contributions you need into eclipse (depends on which tests you are running)
  
For the SCA-J CAA tests:

mvn -Pjavacaa eclipse:eclipse

import tuscany-java-caa-test-runner into eclipse
import sca-java-caa into eclipse

For the SCA-J CI tests:

mvn -Pjavaci eclipse:eclipse

import tuscany-java-ci-test-runner into eclipse
import sca-java-ci into eclipse

For the Policy tests:

mvn -Ppolicy eclipse:eclipse

import tuscany-policy-test-runner into eclipse
import sca-java-policy into eclipse


Structure of the otests
======================

The otest directory, once checked out, contains files from both OASIS and Tuscany svn. As follows

otest/
  newlayout/                        - the latest otests
    sca-assembly/                   - the Assembly otest source pulled directly from OASIS svn via svn:externals
    sca-java-caa/                   - the SCA-J CAA otest source pulled directly from OASIS svn via svn:externals
    sca-java-ci/                    - the SCA-J CI otest source pulled directly from OASIS svn via svn:externals
    sca-java-policy/                - the SCA-J Policy otest source pulled directly from OASIS svn via svn:externals
    tuscany-test-runner             - the tuscany specific code + code copied from sca-assembly/Test_Client
    tuscany-java-caa-test-runner    - the tuscany specific code + code for running the SCA-J CAA tests
    tuscany-java-ci-test-runner     - the tuscany specific code + code for running the SCA-J CI tests
    tuscany-java-policy-test-runner - the tuscany specific code + code for running the SCA-J CI tests

The Junit test cases are copied, using an ant script called by maven, from sca-assembly/Test_Client
into tuscany-test-runner so that we can overlay them with Tuscany specific bridges and property
files. In particular the Tuscany version of the test property files can be found at

tuscany-test-runner/src/test/resources/  
 
Maven puts this on the classpath before 

tuscany-test-runner/src/main/resources

Which is where the otest versions get copied to and hence the Tuscany ones get picked up.