Apache JDO Project - Running a single test in fostore20 (was Re: Problem with self-referencing

This is Interesting: Free IT Magazines  
Home > Archive > Apache JDO Project > August 2005 > Running a single test in fostore20 (was Re: Problem with self-referencing





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Running a single test in fostore20 (was Re: Problem with self-referencing
Michael Bouschen

2005-08-09, 8:45 pm

Hi,

[...]

>
>
> It depends on which project you're running. The TCK can run a single
> configuration (combination of database, test data, and test program. In
> the tck20 directory maven help should give you the details.
>
> If you're in the fostore20 project, it's a work in progress. I don't see
> any way to run a single test. That would be a good thing to add to the
> maven.xml. Something like a system property so you could do:


maven has some builtin support to run JUnit tests (it is the Maven Test
Plug-in). The build goal uses this plugin to run all the specified JUnit
tests. The plugin provides a goal test:single to run a single which can
be used in the fostore20 subproject:
maven -Dtestcase=org.apache.jdo.test.Test_EmpDeptAppId test:single

Please note, this does not work in the tck20 subproject, since it runs
configurations not single test cases.

Regards Michael

>
> maven -Djdo.test.name=org.apache.jdo.test.Test_EmpDeptAppId run.single
>
>
>
> I checked in a fix for FOStorePMF and StateManagerImpl to meet the JDO2
> requirements this afternoon. When I run fostore20 now, I just get one
> error related to the new jdoNewObjectIdInstance that changed between
> JDO1 and JDO2.
> Running org.apache.jdo.test.Test_EmpDeptAppId
> [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 10.737 sec
> [junit] [ERROR] TEST org.apache.jdo.test.Test_EmpDeptAppId FAILED
>
> Craig
>
>
> Craig Russell
>
> Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
>
> 408 276-5638 mailto:Craig.Russell@sun.com
>
> P.S. A good JDO? O, Gasp!
>
>



--
Michael Bouschen Tech@Spree Engineering GmbH
mailto:mbo.tech@spree.de http://www.tech.spree.de/
Tel.:++49/30/235 520-33 Buelowstr. 66
Fax.:++49/30/2175 2012 D-10783 Berlin

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com