Hi Kelvin,

Running mvn from the CTS root directory does run the tests against
Tuscany for me. Here's the output I get.

Thanks,

Andy.

-----------

C:\Development\apache-tuscany-java\cts>mvn
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Community Test Suite
[INFO]   Community Test Suite for SDO 2.1
[INFO]   Tuscany SDO 2.1 CTS
[INFO]
------------------------------------------------------------------------
----
[INFO] Building Community Test Suite
[INFO]    task-segment: [install]
[INFO]
------------------------------------------------------------------------
----
[INFO] [site:attach-descriptor]
[INFO] [install:install]
[INFO] Installing C:\Development\apache-tuscany-java\cts\pom.xml to
C:\Documents and Settings\grove\
.m2\repository\org\apache\tuscany\cts\1.0-SNAPSHOT\cts-1.0-SNAPSHOT.pom
[INFO]
------------------------------------------------------------------------
----
[INFO] Building Community Test Suite for SDO 2.1
[INFO]    task-segment: [install]
[INFO]
------------------------------------------------------------------------
----
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Tests are skipped.
[INFO] [jar:jar]
[INFO] Building jar:
C:\Development\apache-tuscany-java\cts\sdo2.1\target\sdo2.1-cts-1.0-SNAP
SHOT.ja
r
[INFO] [install:install]
[INFO] Installing
C:\Development\apache-tuscany-java\cts\sdo2.1\target\sdo2.1-cts-1.0-SNAP
SHOT.jar t
o C:\Documents and
Settings\grove\.m2\repository\org\apache\tuscany\cts\sdo2.1-cts\1.0-SNAP
SHOT\sdo2
.1-cts-1.0-SNAPSHOT.jar
[INFO]
------------------------------------------------------------------------
----
[INFO] Building Tuscany SDO 2.1 CTS
[INFO]    task-segment: [install]
[INFO]
------------------------------------------------------------------------
----
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Surefire report directory:
C:\Development\apache-tuscany-java\cts\sdo2.1-tuscany\target\suref
ire-reports
CTS_TEST_HELPER was not set - attempting Tuscany implementation : null
Loaded test.sdo21.vendor.tuscany.testHelper.TuscanyTestHelper

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running test.sdo21.vendor.tuscany.tests.AdoptedCtsTestSuite
 default null
Tests run: 26, Failures: 2, Errors: 1, Skipped: 1, Time elapsed: 1.186
sec <<< FAILURE!

Results :

Failed tests:
 
testDefineWithNoLocation(test.sdo21.tests.general.XSDSerializationTest)
 
testDuplicateDefineWithLocation(test.sdo21.tests.general.XSDSerializatio
nTest)

Tests in error:
  testGetInstancePropertiesSize(test.sdo21.tests.api.DataObjectTest)

Tests run: 26, Failures: 2, Errors: 1, Skipped: 1

[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] There are test failures.
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 4 seconds
[INFO] Finished at: Mon Apr 16 14:10:56 BST 2007
[INFO] Final Memory: 6M/12M
[INFO]
------------------------------------------------------------------------

 

-----Original Message-----
From: kelvin goodson [mailto:[EMAIL PROTECTED] 
Sent: 12 April 2007 15:33
To: tuscany-dev
Subject: [Java SDO] Running the CTS against the Tuscany impl

I've been getting back up to speed with the CTS this morning,  and it
took me a little while to get things going.  I came across a couple of
significant issues

one is that the current documentation (
http://cwiki.apache.org/TUSCANY/obtaining-the-sdo-21-cts.html) suggests
that running maven against the source will run the CTS against Tuscany,
which is not the case.  In the end I found that I had to create eclipse
projects, and run test.sdo21.vendor.tuscany.tests.AdopedtCtsTestSuite as
a junit test in eclipse before I could see the results of execution of
the tests,

Once I had managed to run the tests I found that the tuscany test helper
uses the default helper instances for each test in sequence,  and
therefore causes tests to fail which, when run separately, succeed.  I
may have missed discussions on this,  but clearly it needs fixing. Does
anyone have any context that's not document or that I've missed? Is this
on anyone's radar to get to grips with at the moment?

Regards, Kelvin.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to