You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by kelvin goodson <ke...@gmail.com> on 2007/04/12 16:33:11 UTC

[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.

RE: [Java SDO] Running the CTS against the Tuscany impl

Posted by Andy Grove <gr...@roguewave.com>.
Hi Kelvin,

I'm not aware of any special environment set up - I literally just ran
"svn update" then "mvn". The code looks for an environment variable
which provides the name of the test helper class but it defaults to the
Tuscany test helper if no environment variable is set (and I don't have
it set). I'll take a look at the output you sent yesterday and see if I
can figure out what the problem is.

On the second point, I wasn't sure what the plan is for deciding which
suite the tests should go in, so the patch was just for adding the test
as I didn't want to make any assumptions about whether the test was
adopted or under review etc. I guess all new tests are intended to go
into the UnderReviewTestSuite? Do you want me to update the patch to
include that?

Thanks,

Andy.
 

-----Original Message-----
From: kelvin goodson [mailto:kelvingoodson@gmail.com] 
Sent: 17 April 2007 12:09
To: tuscany-dev@ws.apache.org
Subject: Re: [Java SDO] Running the CTS against the Tuscany impl

It would be very helpful to get to the bottom of why Frank and I are
seeing no tests being run.  My guess is that somewhere in the
development of the test suite there has been a commonly agreed tweak to
the environment that Frank and I don't have,  and that is a prereq to
running the tests in this way. I think we need some documentation on the
CTS page that describes how to run the tests,  and the status of each
test.  Am I right in thinking that a test is either in the set of
adopted tests or in the under review tests, and every test is in one of
those sets?

I am just trying to apply the patch for Tuscany-1209, and I guess there
is some kind of trick to getting this class running, because at the
moment I have had to edit UnderReviewSuite.class to include the class
reference, and then run OptionalCtsTestSuite in eclipse a junit test
before I can see it
running.   Is this an expected necessary step?

Kelvin.

On 16/04/07, Frank Budinsky <fr...@ca.ibm.com> wrote:
>
> I get the same result as Kelvin. Seems to build, but then it runs 0
tests.
>
> Frank.
>
> kelvingoodson@gmail.com wrote on 04/16/2007 09:55:35 AM:
>
> > Hmmm,   a mystery ...
> >
> > For the record, here's my output, I can see nothing obvious
> >
> > C:\Development\JiraDev\CTS>svn up
> > At revision 529243.
> >
> >
> > C:\Development\JiraDev\CTS>mvn clean [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: [clean]
> > [INFO] ------------------------------
> > ----------------------------------------------
> > [INFO] [clean:clean]
> > [INFO] Deleting directory C:\Development\JiraDev\CTS\target [INFO] 
> > Deleting directory C:\Development\JiraDev\CTS\target\classes
> > [INFO] Deleting directory 
> > C:\Development\JiraDev\CTS\target\test-classes
> > [INFO]
> >
>
> ----------------------------------------------------------------------
> ------
> >
> > [INFO] Building Community Test Suite for SDO 2.1
> > [INFO]    task-segment: [clean]
> > [INFO]
> >
>
> ----------------------------------------------------------------------
> ------
> > [INFO] artifact org.apache.maven.plugins:maven-surefire-plugin: 
> > checking
> for
> > updates from apache.incubator
> > [INFO] artifact org.apache.maven.plugins:maven-surefire-plugin: 
> > checking
> for
> > updates from codehaus-snapshot
> > [INFO] [clean:clean]
> > [INFO] Deleting directory C:\Development\JiraDev\CTS\sdo2.1\target
> > [INFO] Deleting directory
> C:\Development\JiraDev\CTS\sdo2.1\target\classes
> > [INFO] Deleting directory
> > C:\Development\JiraDev\CTS\sdo2.1\target\test-classes
> > [INFO]
> >
>
> ----------------------------------------------------------------------
> ------
> >
> > [INFO] Building Tuscany SDO 2.1 CTS
> > [INFO]    task-segment: [clean]
> > [INFO]
> >
>
> ----------------------------------------------------------------------
> ------
> > [INFO] [clean:clean]
> > [INFO] Deleting directory
> C:\Development\JiraDev\CTS\sdo2.1-tuscany\target
> > [INFO] Deleting directory
> > C:\Development\JiraDev\CTS\sdo2.1-tuscany\target\classes
> > [INFO] Deleting directory
> > C:\Development\JiraDev\CTS\sdo2.1-tuscany\target\test-classes
> > [INFO]
> > [INFO]
> > [INFO]
> > --------------------------------------------------------------------
> > ----
> > [INFO] Reactor Summary:
> > [INFO]
> > --------------------------------------------------------------------
> > ---- [INFO] Community Test Suite .................................. 
> > SUCCESS [ 1.302s] [INFO] Community Test Suite for SDO 2.1 
> > ...................... SUCCESS [ 17.586s] [INFO] Tuscany SDO 2.1 CTS

> > ................................... SUCCESS [ 3.575s] [INFO]
> > --------------------------------------------------------------------
> > ----
> > [INFO]
> > --------------------------------------------------------------------
> > ----
> > [INFO] BUILD SUCCESSFUL
> > [INFO]
> > --------------------------------------------------------------------
> > ----
> > [INFO] Total time: 23 seconds
> > [INFO] Finished at: Mon Apr 16 14:44:48 BST 2007 [INFO] Final 
> > Memory: 3M/7M [INFO]
> > --------------------------------------------------------------------
> > ----
> >
> >
> >
> > C:\Development\JiraDev\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\JiraDev\CTS\pom.xml to C:\Documents

> > and Settings\ibm_user\.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]
> > Compiling 32 source files to
> > C:\Development\JiraDev\CTS\sdo2.1\target\classes
> > [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\JiraDev\CTS\sdo2.1\target\sdo2.1-
> > cts-1.0-SNAPSHOT.jar
> > [INFO] [install:install]
> > [INFO] Installing C:\Development\JiraDev\CTS\sdo2.1\target\sdo2.1-
> > cts-1.0-SNAPSHOT.jar to C:\Documents and Settings\ibm_user\
> > .m2\repository\org\apache\tuscany\cts\sdo2.1-cts\1.0-SNAPSHOT\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] snapshot
> > org.apache.tuscany.sdo:tuscany-sdo-impl:1.0-incubator-SNAPSHOT: 
> > checking
> for
> > updates from apache.snapshots
> > [INFO] snapshot
> > org.apache.tuscany.sdo:tuscany-sdo:1.0-incubator-SNAPSHOT:checking 
> > for updates from codehaus [INFO] snapshot 
> > org.apache.tuscany.sdo:tuscany-sdo:1.0-incubator-SNAPSHOT:checking 
> > for updates from apache.snapshots [INFO] [compiler:compile] 
> > Compiling 1 source file to 
> > C:\Development\JiraDev\CTS\sdo2.1-tuscany\target\classes
> > [INFO] [resources:testResources]
> > [INFO] Using default encoding to copy filtered resources.
> > [INFO] [compiler:testCompile]
> > Compiling 2 source files to
> > C:\Development\JiraDev\CTS\sdo2.1-tuscany\target\test-classes
> > [INFO] [surefire:test]
> > [INFO] Surefire report directory:
> > C:\Development\JiraDev\CTS\sdo2.1-tuscany\target\surefire-reports
> >
> > -------------------------------------------------------
> >  T E S T S
> > -------------------------------------------------------
> > There are no tests to run.
> >
> > Results :
> > Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
> >
> > [INFO] [jar:jar]
> > [INFO] Building jar:
> > C:\Development\JiraDev\CTS\sdo2.1-tuscany\target\sdo2.1-
> > tuscany-1.0-SNAPSHOT.jar
> > [INFO] [install:install]
> > [INFO] Installing
> C:\Development\JiraDev\CTS\sdo2.1-tuscany\target\sdo2.1-
> > tuscany-1.0-SNAPSHOT.jar to C:\Documents and Settin 
> > gs\ibm_user\.m2\repository\org\apache\tuscany\cts\sdo2.1-tuscany\1.
> > 0-SNAPSHOT\sdo2.1-
> > tuscany-1.0-SNAPSHOT.jar
> > [INFO]
> > [INFO]
> > [INFO]
> > --------------------------------------------------------------------
> > ----
> > [INFO] Reactor Summary:
> > [INFO]
> > --------------------------------------------------------------------
> > ---- [INFO] Community Test Suite .................................. 
> > SUCCESS [ 4.877s] [INFO] Community Test Suite for SDO 2.1 
> > ...................... SUCCESS [ 13.720s] [INFO] Tuscany SDO 2.1 CTS

> > ................................... SUCCESS [ 10.935s] [INFO]
> > --------------------------------------------------------------------
> > ----
> > [INFO]
> > --------------------------------------------------------------------
> > ----
> > [INFO] BUILD SUCCESSFUL
> > [INFO]
> > --------------------------------------------------------------------
> > ----
> > [INFO] Total time: 30 seconds
> > [INFO] Finished at: Mon Apr 16 14:45:59 BST 2007 [INFO] Final 
> > Memory: 7M/23M [INFO]
> > --------------------------------------------------------------------
> > ----
> >
> >
> > On 16/04/07, Andy Grove <gr...@roguewave.com> wrote:
> > >
> > > 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.po
> m
> > > [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-SN
> AP
> > > SHOT.ja
> > > r
> > > [INFO] [install:install]
> > > [INFO] Installing
> > >
> C:\Development\apache-tuscany-java\cts\sdo2.1\target\sdo2.1-cts-1.0-SN
> AP
> > > SHOT.jar t
> > > o C:\Documents and
> > >
> Settings\grove\.m2\repository\org\apache\tuscany\cts\sdo2.1-cts\1.0-SN
> AP
> > > 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.XSDSerializat
> io
> > > 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:kelvingoodson@gmail.com]
> > > 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: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


Re: [Java SDO] Running the CTS against the Tuscany impl

Posted by kelvin goodson <ke...@gmail.com>.
It would be very helpful to get to the bottom of why Frank and I are seeing
no tests being run.  My guess is that somewhere in the development of the
test suite there has been a commonly agreed tweak to the environment that
Frank and I don't have,  and that is a prereq to running the tests in this
way. I think we need some documentation on the CTS page that describes how
to run the tests,  and the status of each test.  Am I right in thinking that
a test is either in the set of adopted tests or in the under review tests,
and every test is in one of those sets?

I am just trying to apply the patch for Tuscany-1209, and I guess there is
some kind of trick to getting this class running, because at the moment I
have had to edit UnderReviewSuite.class to include the class reference, and
then run OptionalCtsTestSuite in eclipse a junit test before I can see it
running.   Is this an expected necessary step?

Kelvin.

On 16/04/07, Frank Budinsky <fr...@ca.ibm.com> wrote:
>
> I get the same result as Kelvin. Seems to build, but then it runs 0 tests.
>
> Frank.
>
> kelvingoodson@gmail.com wrote on 04/16/2007 09:55:35 AM:
>
> > Hmmm,   a mystery ...
> >
> > For the record, here's my output, I can see nothing obvious
> >
> > C:\Development\JiraDev\CTS>svn up
> > At revision 529243.
> >
> >
> > C:\Development\JiraDev\CTS>mvn clean
> > [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: [clean]
> > [INFO] ------------------------------
> > ----------------------------------------------
> > [INFO] [clean:clean]
> > [INFO] Deleting directory C:\Development\JiraDev\CTS\target
> > [INFO] Deleting directory C:\Development\JiraDev\CTS\target\classes
> > [INFO] Deleting directory C:\Development\JiraDev\CTS\target\test-classes
> > [INFO]
> >
>
> ----------------------------------------------------------------------------
> >
> > [INFO] Building Community Test Suite for SDO 2.1
> > [INFO]    task-segment: [clean]
> > [INFO]
> >
>
> ----------------------------------------------------------------------------
> > [INFO] artifact org.apache.maven.plugins:maven-surefire-plugin: checking
> for
> > updates from apache.incubator
> > [INFO] artifact org.apache.maven.plugins:maven-surefire-plugin: checking
> for
> > updates from codehaus-snapshot
> > [INFO] [clean:clean]
> > [INFO] Deleting directory C:\Development\JiraDev\CTS\sdo2.1\target
> > [INFO] Deleting directory
> C:\Development\JiraDev\CTS\sdo2.1\target\classes
> > [INFO] Deleting directory
> > C:\Development\JiraDev\CTS\sdo2.1\target\test-classes
> > [INFO]
> >
>
> ----------------------------------------------------------------------------
> >
> > [INFO] Building Tuscany SDO 2.1 CTS
> > [INFO]    task-segment: [clean]
> > [INFO]
> >
>
> ----------------------------------------------------------------------------
> > [INFO] [clean:clean]
> > [INFO] Deleting directory
> C:\Development\JiraDev\CTS\sdo2.1-tuscany\target
> > [INFO] Deleting directory
> > C:\Development\JiraDev\CTS\sdo2.1-tuscany\target\classes
> > [INFO] Deleting directory
> > C:\Development\JiraDev\CTS\sdo2.1-tuscany\target\test-classes
> > [INFO]
> > [INFO]
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Reactor Summary:
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Community Test Suite .................................. SUCCESS [
> > 1.302s]
> > [INFO] Community Test Suite for SDO 2.1 ...................... SUCCESS [
> > 17.586s]
> > [INFO] Tuscany SDO 2.1 CTS ................................... SUCCESS [
> > 3.575s]
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] BUILD SUCCESSFUL
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Total time: 23 seconds
> > [INFO] Finished at: Mon Apr 16 14:44:48 BST 2007
> > [INFO] Final Memory: 3M/7M
> > [INFO]
> > ------------------------------------------------------------------------
> >
> >
> >
> > C:\Development\JiraDev\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\JiraDev\CTS\pom.xml to C:\Documents and
> > Settings\ibm_user\.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]
> > Compiling 32 source files to
> > C:\Development\JiraDev\CTS\sdo2.1\target\classes
> > [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\JiraDev\CTS\sdo2.1\target\sdo2.1-
> > cts-1.0-SNAPSHOT.jar
> > [INFO] [install:install]
> > [INFO] Installing C:\Development\JiraDev\CTS\sdo2.1\target\sdo2.1-
> > cts-1.0-SNAPSHOT.jar to C:\Documents and Settings\ibm_user\
> > .m2\repository\org\apache\tuscany\cts\sdo2.1-cts\1.0-SNAPSHOT\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] snapshot
> > org.apache.tuscany.sdo:tuscany-sdo-impl:1.0-incubator-SNAPSHOT: checking
> for
> > updates from apache.snapshots
> > [INFO] snapshot
> > org.apache.tuscany.sdo:tuscany-sdo:1.0-incubator-SNAPSHOT:checking for
> > updates from codehaus
> > [INFO] snapshot
> > org.apache.tuscany.sdo:tuscany-sdo:1.0-incubator-SNAPSHOT:checking for
> > updates from
> > apache.snapshots
> > [INFO] [compiler:compile]
> > Compiling 1 source file to
> > C:\Development\JiraDev\CTS\sdo2.1-tuscany\target\classes
> > [INFO] [resources:testResources]
> > [INFO] Using default encoding to copy filtered resources.
> > [INFO] [compiler:testCompile]
> > Compiling 2 source files to
> > C:\Development\JiraDev\CTS\sdo2.1-tuscany\target\test-classes
> > [INFO] [surefire:test]
> > [INFO] Surefire report directory:
> > C:\Development\JiraDev\CTS\sdo2.1-tuscany\target\surefire-reports
> >
> > -------------------------------------------------------
> >  T E S T S
> > -------------------------------------------------------
> > There are no tests to run.
> >
> > Results :
> > Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
> >
> > [INFO] [jar:jar]
> > [INFO] Building jar:
> > C:\Development\JiraDev\CTS\sdo2.1-tuscany\target\sdo2.1-
> > tuscany-1.0-SNAPSHOT.jar
> > [INFO] [install:install]
> > [INFO] Installing
> C:\Development\JiraDev\CTS\sdo2.1-tuscany\target\sdo2.1-
> > tuscany-1.0-SNAPSHOT.jar to C:\Documents and Settin
> > gs\ibm_user\.m2\repository\org\apache\tuscany\cts\sdo2.1-tuscany\1.
> > 0-SNAPSHOT\sdo2.1-
> > tuscany-1.0-SNAPSHOT.jar
> > [INFO]
> > [INFO]
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Reactor Summary:
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Community Test Suite .................................. SUCCESS [
> > 4.877s]
> > [INFO] Community Test Suite for SDO 2.1 ...................... SUCCESS [
> > 13.720s]
> > [INFO] Tuscany SDO 2.1 CTS ................................... SUCCESS [
> > 10.935s]
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] BUILD SUCCESSFUL
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Total time: 30 seconds
> > [INFO] Finished at: Mon Apr 16 14:45:59 BST 2007
> > [INFO] Final Memory: 7M/23M
> > [INFO]
> > ------------------------------------------------------------------------
> >
> >
> > On 16/04/07, Andy Grove <gr...@roguewave.com> wrote:
> > >
> > > 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:kelvingoodson@gmail.com]
> > > 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: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>
>

Re: [Java SDO] Running the CTS against the Tuscany impl

Posted by Frank Budinsky <fr...@ca.ibm.com>.
I get the same result as Kelvin. Seems to build, but then it runs 0 tests.

Frank.

kelvingoodson@gmail.com wrote on 04/16/2007 09:55:35 AM:

> Hmmm,   a mystery ...
> 
> For the record, here's my output, I can see nothing obvious
> 
> C:\Development\JiraDev\CTS>svn up
> At revision 529243.
> 
> 
> C:\Development\JiraDev\CTS>mvn clean
> [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: [clean]
> [INFO] ------------------------------
> ----------------------------------------------
> [INFO] [clean:clean]
> [INFO] Deleting directory C:\Development\JiraDev\CTS\target
> [INFO] Deleting directory C:\Development\JiraDev\CTS\target\classes
> [INFO] Deleting directory C:\Development\JiraDev\CTS\target\test-classes
> [INFO]
> 
----------------------------------------------------------------------------
> 
> [INFO] Building Community Test Suite for SDO 2.1
> [INFO]    task-segment: [clean]
> [INFO]
> 
----------------------------------------------------------------------------
> [INFO] artifact org.apache.maven.plugins:maven-surefire-plugin: checking 
for
> updates from apache.incubator
> [INFO] artifact org.apache.maven.plugins:maven-surefire-plugin: checking 
for
> updates from codehaus-snapshot
> [INFO] [clean:clean]
> [INFO] Deleting directory C:\Development\JiraDev\CTS\sdo2.1\target
> [INFO] Deleting directory 
C:\Development\JiraDev\CTS\sdo2.1\target\classes
> [INFO] Deleting directory
> C:\Development\JiraDev\CTS\sdo2.1\target\test-classes
> [INFO]
> 
----------------------------------------------------------------------------
> 
> [INFO] Building Tuscany SDO 2.1 CTS
> [INFO]    task-segment: [clean]
> [INFO]
> 
----------------------------------------------------------------------------
> [INFO] [clean:clean]
> [INFO] Deleting directory 
C:\Development\JiraDev\CTS\sdo2.1-tuscany\target
> [INFO] Deleting directory
> C:\Development\JiraDev\CTS\sdo2.1-tuscany\target\classes
> [INFO] Deleting directory
> C:\Development\JiraDev\CTS\sdo2.1-tuscany\target\test-classes
> [INFO]
> [INFO]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Community Test Suite .................................. SUCCESS [
> 1.302s]
> [INFO] Community Test Suite for SDO 2.1 ...................... SUCCESS [
> 17.586s]
> [INFO] Tuscany SDO 2.1 CTS ................................... SUCCESS [
> 3.575s]
> [INFO]
> ------------------------------------------------------------------------
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 23 seconds
> [INFO] Finished at: Mon Apr 16 14:44:48 BST 2007
> [INFO] Final Memory: 3M/7M
> [INFO]
> ------------------------------------------------------------------------
> 
> 
> 
> C:\Development\JiraDev\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\JiraDev\CTS\pom.xml to C:\Documents and
> Settings\ibm_user\.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]
> Compiling 32 source files to
> C:\Development\JiraDev\CTS\sdo2.1\target\classes
> [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\JiraDev\CTS\sdo2.1\target\sdo2.1-
> cts-1.0-SNAPSHOT.jar
> [INFO] [install:install]
> [INFO] Installing C:\Development\JiraDev\CTS\sdo2.1\target\sdo2.1-
> cts-1.0-SNAPSHOT.jar to C:\Documents and Settings\ibm_user\
> .m2\repository\org\apache\tuscany\cts\sdo2.1-cts\1.0-SNAPSHOT\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] snapshot
> org.apache.tuscany.sdo:tuscany-sdo-impl:1.0-incubator-SNAPSHOT: checking 
for
> updates from apache.snapshots
> [INFO] snapshot
> org.apache.tuscany.sdo:tuscany-sdo:1.0-incubator-SNAPSHOT:checking for
> updates from codehaus
> [INFO] snapshot
> org.apache.tuscany.sdo:tuscany-sdo:1.0-incubator-SNAPSHOT:checking for
> updates from
> apache.snapshots
> [INFO] [compiler:compile]
> Compiling 1 source file to
> C:\Development\JiraDev\CTS\sdo2.1-tuscany\target\classes
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:testCompile]
> Compiling 2 source files to
> C:\Development\JiraDev\CTS\sdo2.1-tuscany\target\test-classes
> [INFO] [surefire:test]
> [INFO] Surefire report directory:
> C:\Development\JiraDev\CTS\sdo2.1-tuscany\target\surefire-reports
> 
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> There are no tests to run.
> 
> Results :
> Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
> 
> [INFO] [jar:jar]
> [INFO] Building jar:
> C:\Development\JiraDev\CTS\sdo2.1-tuscany\target\sdo2.1-
> tuscany-1.0-SNAPSHOT.jar
> [INFO] [install:install]
> [INFO] Installing 
C:\Development\JiraDev\CTS\sdo2.1-tuscany\target\sdo2.1-
> tuscany-1.0-SNAPSHOT.jar to C:\Documents and Settin
> gs\ibm_user\.m2\repository\org\apache\tuscany\cts\sdo2.1-tuscany\1.
> 0-SNAPSHOT\sdo2.1-
> tuscany-1.0-SNAPSHOT.jar
> [INFO]
> [INFO]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Community Test Suite .................................. SUCCESS [
> 4.877s]
> [INFO] Community Test Suite for SDO 2.1 ...................... SUCCESS [
> 13.720s]
> [INFO] Tuscany SDO 2.1 CTS ................................... SUCCESS [
> 10.935s]
> [INFO]
> ------------------------------------------------------------------------
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 30 seconds
> [INFO] Finished at: Mon Apr 16 14:45:59 BST 2007
> [INFO] Final Memory: 7M/23M
> [INFO]
> ------------------------------------------------------------------------
> 
> 
> On 16/04/07, Andy Grove <gr...@roguewave.com> wrote:
> >
> > 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:kelvingoodson@gmail.com]
> > 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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


Re: [Java SDO] Running the CTS against the Tuscany impl

Posted by kelvin goodson <ke...@thegoodsons.org.uk>.
Hmmm,   a mystery ...

For the record, here's my output, I can see nothing obvious

C:\Development\JiraDev\CTS>svn up
At revision 529243.


C:\Development\JiraDev\CTS>mvn clean
[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: [clean]
[INFO] ------------------------------
----------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory C:\Development\JiraDev\CTS\target
[INFO] Deleting directory C:\Development\JiraDev\CTS\target\classes
[INFO] Deleting directory C:\Development\JiraDev\CTS\target\test-classes
[INFO]
----------------------------------------------------------------------------

[INFO] Building Community Test Suite for SDO 2.1
[INFO]    task-segment: [clean]
[INFO]
----------------------------------------------------------------------------
[INFO] artifact org.apache.maven.plugins:maven-surefire-plugin: checking for
updates from apache.incubator
[INFO] artifact org.apache.maven.plugins:maven-surefire-plugin: checking for
updates from codehaus-snapshot
[INFO] [clean:clean]
[INFO] Deleting directory C:\Development\JiraDev\CTS\sdo2.1\target
[INFO] Deleting directory C:\Development\JiraDev\CTS\sdo2.1\target\classes
[INFO] Deleting directory
C:\Development\JiraDev\CTS\sdo2.1\target\test-classes
[INFO]
----------------------------------------------------------------------------

[INFO] Building Tuscany SDO 2.1 CTS
[INFO]    task-segment: [clean]
[INFO]
----------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory C:\Development\JiraDev\CTS\sdo2.1-tuscany\target
[INFO] Deleting directory
C:\Development\JiraDev\CTS\sdo2.1-tuscany\target\classes
[INFO] Deleting directory
C:\Development\JiraDev\CTS\sdo2.1-tuscany\target\test-classes
[INFO]
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
------------------------------------------------------------------------
[INFO] Community Test Suite .................................. SUCCESS [
1.302s]
[INFO] Community Test Suite for SDO 2.1 ...................... SUCCESS [
17.586s]
[INFO] Tuscany SDO 2.1 CTS ................................... SUCCESS [
3.575s]
[INFO]
------------------------------------------------------------------------
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 23 seconds
[INFO] Finished at: Mon Apr 16 14:44:48 BST 2007
[INFO] Final Memory: 3M/7M
[INFO]
------------------------------------------------------------------------



C:\Development\JiraDev\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\JiraDev\CTS\pom.xml to C:\Documents and
Settings\ibm_user\.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]
Compiling 32 source files to
C:\Development\JiraDev\CTS\sdo2.1\target\classes
[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\JiraDev\CTS\sdo2.1\target\sdo2.1-
cts-1.0-SNAPSHOT.jar
[INFO] [install:install]
[INFO] Installing C:\Development\JiraDev\CTS\sdo2.1\target\sdo2.1-
cts-1.0-SNAPSHOT.jar to C:\Documents and Settings\ibm_user\
.m2\repository\org\apache\tuscany\cts\sdo2.1-cts\1.0-SNAPSHOT\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] snapshot
org.apache.tuscany.sdo:tuscany-sdo-impl:1.0-incubator-SNAPSHOT: checking for
updates from apache.snapshots
[INFO] snapshot
org.apache.tuscany.sdo:tuscany-sdo:1.0-incubator-SNAPSHOT:checking for
updates from codehaus
[INFO] snapshot
org.apache.tuscany.sdo:tuscany-sdo:1.0-incubator-SNAPSHOT:checking for
updates from
apache.snapshots
[INFO] [compiler:compile]
Compiling 1 source file to
C:\Development\JiraDev\CTS\sdo2.1-tuscany\target\classes
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
Compiling 2 source files to
C:\Development\JiraDev\CTS\sdo2.1-tuscany\target\test-classes
[INFO] [surefire:test]
[INFO] Surefire report directory:
C:\Development\JiraDev\CTS\sdo2.1-tuscany\target\surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
There are no tests to run.

Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO] [jar:jar]
[INFO] Building jar:
C:\Development\JiraDev\CTS\sdo2.1-tuscany\target\sdo2.1-
tuscany-1.0-SNAPSHOT.jar
[INFO] [install:install]
[INFO] Installing C:\Development\JiraDev\CTS\sdo2.1-tuscany\target\sdo2.1-
tuscany-1.0-SNAPSHOT.jar to C:\Documents and Settin
gs\ibm_user\.m2\repository\org\apache\tuscany\cts\sdo2.1-tuscany\1.0-SNAPSHOT\sdo2.1-
tuscany-1.0-SNAPSHOT.jar
[INFO]
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
------------------------------------------------------------------------
[INFO] Community Test Suite .................................. SUCCESS [
4.877s]
[INFO] Community Test Suite for SDO 2.1 ...................... SUCCESS [
13.720s]
[INFO] Tuscany SDO 2.1 CTS ................................... SUCCESS [
10.935s]
[INFO]
------------------------------------------------------------------------
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 30 seconds
[INFO] Finished at: Mon Apr 16 14:45:59 BST 2007
[INFO] Final Memory: 7M/23M
[INFO]
------------------------------------------------------------------------


On 16/04/07, Andy Grove <gr...@roguewave.com> wrote:
>
> 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:kelvingoodson@gmail.com]
> 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.
>

RE: [Java SDO] Running the CTS against the Tuscany impl

Posted by Andy Grove <gr...@roguewave.com>.
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:kelvingoodson@gmail.com] 
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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org