You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-dev@db.apache.org by "Matthew T. Adams" <ma...@xcalia.com> on 2005/09/22 00:51:15 UTC

Run single TCK test?

Hi all,
 
Please forgive if dumb questions.
 
How do I run a single test method or test class?  I'd like to be able to do
it via the command line as well as in NetBeans so that I can debug it.  Do I
have to create my own configuration file in test/conf (.list & .conf) for
each test I want to run alone?  Also, which target is the most appropriate
to build tck20 plus its dependencies without executing the near-20-minute
installSchema target?
 
--matthew
 
Matthew T. Adams
Corporate Technical Advisor & Senior Consultant
Mobile:  +1 253 732 1051
Phone:  +1 206 331 3833
Fax:  +1 815 331 0952
matthew.adams@xcalia.com
P.O. Box 24163
Federal Way, WA  98093
www.xcalia.com <http://www.xcalia.com/> 
 

 
Xcalia makes implementing SOA easy with agile business intermediation
software that combines heterogeneous data with services to easily develop
and deploy transactional composite applications.  Enterprises can quickly
respond to changing business requirements and dramatically reduce the costs
of data access and service integration.
 

Re: Run single TCK test?

Posted by karan malhi <ka...@gmail.com>.
Hi Matthew,

I dont use netbeans, but i found some stuff on mevenide website which 
might be useful to you:

"when running any of the debug goals, the IDE will attempt to attach the 
debugger to the process started by the goal. These properties can be 
used to disable or customize the automatic debugger attaching. (In the 
future the IDE should be also able to start a listening debugger and let 
the plugin connect to it.)

In case you create your own goals, completely avoiding the 
maven-mevenide-plugin, then please add a line starting with 
|[mevenide-debug-start]| into the output of the goal. The IDE is 
notified that way that it should start the attaching process."

Looking from the above it seems that you should add the line 
<echo>[mevenide-debug-start]</echo> as the first line in the goal you 
want to execute.

Hope this helps.

Regards

Karan Malhi




Matthew T. Adams wrote:

>I'm using NetBeans as my IDE for this stuff.  I found that if I use the
>NetBeans "Build" command, which is mapped to the Maven goal "jar:install", I
>build what I want (tck20 w/out installSchema).
> 
>What I'm trying to do now is to run a single test within the IDE so that I
>can debug it.  I'm not having good luck with that.  NetBeans launches the
>goal mevenide:debug-artifact, which then chokes:
> 
>mevenide:debug-artifact:
>[mevenide-debug-start] Starting the debugged application...    [echo]
>jvmargs=-Xdebug -Xnoagent -Djava.compiler=NONE
>-Xrunjdwp:transport=dt_socket,server=y,address=8888,suspend=y 
> 
>BUILD FAILED
>File...... C:\Documents and
>Settings\Matthew\.maven\cache\maven-mevenide-plugin-0.3\plugin.jelly
>Element... ant:java
>Line...... 122
>Column.... 73
>Classname must not be null.
>Total time: 11 seconds
>Finished at: Thu Sep 22 09:26:09 PDT 2005
>
>All of the debug jvmargs look good -- I don't know why I'm getting the
>"Classname must not be null" message.  I need to add the arg
>-Djdo.tck.cfglist=detach.list as well, but it should still run as is...
> 
>Any ideas anyone?
>
>-----Original Message-----
>From: Craig Russell [mailto:Craig.Russell@Sun.COM] 
>Sent: Thursday, September 22, 2005 9:26 AM
>To: jdo-dev@db.apache.org
>Subject: Re: Run single TCK test?
>
>
>Hi Matthew, 
>
>On Sep 22, 2005, at 9:09 AM, Michelle Caisse wrote:
>
>
>Matthew T. Adams wrote:
>
>
>
>Yes, I only want to run installSchema once, unless I'm going to lunch or
>something while it runs.  I'd like to be able to build tck20, though,
>without running the installSchema target.  
>
>
>I think something got lost in translation. When you build tck20 for the
>first time, the target directory is created. This directory contains the log
>files, the database, class files, and enhanced classes. If you then
>runtck.jdori, it will use everything that's already built and won't do
>anything except repackage the enhanced classes. Specifically, it won't run
>installSchema.
>
>
>If you want to do a clean build without installing schema, you can rm
>target/classes, target/enhanced and then runtck.jdori. That will rebuild the
>classes from source, enhance, and run the tests.
>
>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!
>
>
>
>  
>

-- 
Karan Singh


RE: Run single TCK test?

Posted by "Matthew T. Adams" <ma...@xcalia.com>.
I'm using NetBeans as my IDE for this stuff.  I found that if I use the
NetBeans "Build" command, which is mapped to the Maven goal "jar:install", I
build what I want (tck20 w/out installSchema).
 
What I'm trying to do now is to run a single test within the IDE so that I
can debug it.  I'm not having good luck with that.  NetBeans launches the
goal mevenide:debug-artifact, which then chokes:
 
mevenide:debug-artifact:
[mevenide-debug-start] Starting the debugged application...    [echo]
jvmargs=-Xdebug -Xnoagent -Djava.compiler=NONE
-Xrunjdwp:transport=dt_socket,server=y,address=8888,suspend=y 
 
BUILD FAILED
File...... C:\Documents and
Settings\Matthew\.maven\cache\maven-mevenide-plugin-0.3\plugin.jelly
Element... ant:java
Line...... 122
Column.... 73
Classname must not be null.
Total time: 11 seconds
Finished at: Thu Sep 22 09:26:09 PDT 2005

All of the debug jvmargs look good -- I don't know why I'm getting the
"Classname must not be null" message.  I need to add the arg
-Djdo.tck.cfglist=detach.list as well, but it should still run as is...
 
Any ideas anyone?

-----Original Message-----
From: Craig Russell [mailto:Craig.Russell@Sun.COM] 
Sent: Thursday, September 22, 2005 9:26 AM
To: jdo-dev@db.apache.org
Subject: Re: Run single TCK test?


Hi Matthew, 

On Sep 22, 2005, at 9:09 AM, Michelle Caisse wrote:


Matthew T. Adams wrote:



Yes, I only want to run installSchema once, unless I'm going to lunch or
something while it runs.  I'd like to be able to build tck20, though,
without running the installSchema target.  


I think something got lost in translation. When you build tck20 for the
first time, the target directory is created. This directory contains the log
files, the database, class files, and enhanced classes. If you then
runtck.jdori, it will use everything that's already built and won't do
anything except repackage the enhanced classes. Specifically, it won't run
installSchema.


If you want to do a clean build without installing schema, you can rm
target/classes, target/enhanced and then runtck.jdori. That will rebuild the
classes from source, enhance, and run the tests.

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!



Re: Run single TCK test?

Posted by Craig Russell <Cr...@Sun.COM>.
Hi Matthew,

On Sep 22, 2005, at 9:09 AM, Michelle Caisse wrote:

> Matthew T. Adams wrote:
>
>
>> Yes, I only want to run installSchema once, unless I'm going to  
>> lunch or
>> something while it runs.  I'd like to be able to build tck20, though,
>> without running the installSchema target.

I think something got lost in translation. When you build tck20 for  
the first time, the target directory is created. This directory  
contains the log files, the database, class files, and enhanced  
classes. If you then runtck.jdori, it will use everything that's  
already built and won't do anything except repackage the enhanced  
classes. Specifically, it won't run installSchema.

If you want to do a clean build without installing schema, you can rm  
target/classes, target/enhanced and then runtck.jdori. That will  
rebuild the classes from source, enhance, and run the tests.

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!


Re: Run single TCK test?

Posted by karan malhi <ka...@gmail.com>.
Hi Mathew,

This is what the build goal looks like in tck20/maven.xml

    <goal name="build">
        <attainGoal name="default"/>
        <attainGoal name="setProps"/>
        <attainGoal name="privateInstallSchema"/>
        <attainGoal name="privateRuntck.jdori"/>
        <attainGoal name="result"/>
    </goal>

So you can see that the build goal calls privateInstallSchema.
 I think the tck20.build goal calls the build goals on all the projects 
falling under the tck20 scope. (look at project.properties ). Do you 
think it would be easier if we could have a property in maven called 
jdo.tck.installschema=false.? Default of this property could be left to true

maven -bo -Djdo.tck.installschema=false tck20.build.


Michelle Caisse wrote:

> Matthew T. Adams wrote:
>
>> Yes, I only want to run installSchema once, unless I'm going to lunch or
>> something while it runs.  I'd like to be able to build tck20, though,
>> without running the installSchema target.  I'll look at adding that 
>> goal --
>> is it one of the standard maven goals like 
>> multiproject:install-snapshot or
>> something like that?
>>
>>  
>>
> Do you mean you want to build tck20 with all of its dependencies, 
> without doing installSchema?  I'm not quite sure how you would do that 
> because the multiproject stuff seems to be set up to use the build 
> goals of the components and the tck20 build goal invokes 
> installSchema.  But Michael Bouschen is the expert on multiproject.
>
> If you just want to recompile and enhance prior to running a test, in 
> tck20 maven runtck.jdori will do that (without installing the 
> schema).  You may use the appropriate flags to reduce the number of 
> configurations that are run.
>
> -- Michelle
>

-- 
Karan Singh


Re: Run single TCK test?

Posted by Michelle Caisse <Mi...@Sun.COM>.
Matthew T. Adams wrote:

>Yes, I only want to run installSchema once, unless I'm going to lunch or
>something while it runs.  I'd like to be able to build tck20, though,
>without running the installSchema target.  I'll look at adding that goal --
>is it one of the standard maven goals like multiproject:install-snapshot or
>something like that?
>
>  
>
Do you mean you want to build tck20 with all of its dependencies, 
without doing installSchema?  I'm not quite sure how you would do that 
because the multiproject stuff seems to be set up to use the build goals 
of the components and the tck20 build goal invokes installSchema.  But 
Michael Bouschen is the expert on multiproject.

If you just want to recompile and enhance prior to running a test, in 
tck20 maven runtck.jdori will do that (without installing the schema).  
You may use the appropriate flags to reduce the number of configurations 
that are run.

-- Michelle

Re: Run single TCK test?

Posted by karan malhi <ka...@gmail.com>.
Hi Craig,

Here are some things which i do with the console.
1. To run the console:     maven -bo 
-Djdo.tck.cfglist="inheritance1.conf" 
-Djdo.tck.identitytypes="applicationidentity" console
2. This will show you the console prompt, something like
jdo2-tck 2.0-SNAPSHOT > [default]
3. If you want to run a goal, just type in the goal name,
runtck.jdori
4. if you want to change any property, just give the property name=value 
pair(notice i am not using quotes around property values, something 
which you have to do on the command line)
jdo.tck.cfglist=inheritance1.conf  inheritance2.conf
5. you can only set one property at a time.
6. if you want to see your current run configuration, i normally call 
the setProps goal
7. to quit the console, just type quit.


Craig Russell wrote:

> Hi Karan,
>
> I'm missing some concepts with the maven console. Could you please 
> give us a sample maven console run?
>
> Thanks,
>
> Craig
>
> On Sep 22, 2005, at 9:01 AM, karan malhi wrote:
>
>> Hi Matthew,
>>
>> You can also try maven console, if you are running single tests. This 
>> will save you some jvm startup time.
>>
>>
>> Matthew T. Adams wrote:
>>
>>
>>>>> How do I run a single test method or test class?  I'd like      
>>>>>
>>>> to be able    
>>>>
>>>>> to do it via the command line as well as in NetBeans so that I can 
>>>>> debug it.  Do I have to create my own configuration file in      
>>>>>
>>>> test/conf    
>>>>
>>>>> (.list & .conf) for each test I want to run alone?
>>>>>
>>>>>      
>>>>>
>>>>>
>>>> You need your own .conf file and you invoke it with 
>>>> -Djdo.tck.cfglist=<your conf> on the maven command line.  Take a 
>>>> look at step 12. on 
>>>> http://wiki.apache.org/jdo/TechnologyCompatibilityKit#HowTo
>>>>
>>>>    
>>>>
>>>>
>>>
>>> As I figured.  I've already got my detach.list & detach.conf files 
>>> going.
>>>
>>>  
>>>
>>>
>>>>>  Also, which target is the most appropriate to build tck20 plus 
>>>>> its dependencies without executing the near-20-minute      
>>>>>
>>>> installSchema target?
>>>>
>>>> Michael B. has just added some nice multiproject goals in 
>>>> jdo/trunk.  From there you can do maven tck20.build.  
>>>> Unfortunately, this does get you the lengthy installSchema goal as 
>>>> well.  So we really don't have a single target that meets your 
>>>> requirements.  However, you're gonna need a schema installed for 
>>>> most anything you do, aren't you?  So you just do it once.  
>>>> Otherwise, you can take a look at either trunk/README.txt or 
>>>> trunk/project.properties to find out the order of dependencies and 
>>>> invoke maven in each of the subdirectories.  You need to build 
>>>> api20, core20, enhancer20, then tck20.
>>>>
>>>>    
>>>>
>>>>
>>>
>>> Yes, I only want to run installSchema once, unless I'm going to lunch or
>>> something while it runs.  I'd like to be able to build tck20, though,
>>> without running the installSchema target.  I'll look at adding that 
>>> goal --
>>> is it one of the standard maven goals like 
>>> multiproject:install-snapshot or
>>> something like that?
>>>
>>>
>>>  
>>>
>>>
>>>> In case you haven't heard, you can do maven help in tck20 to get 
>>>> some help text for goals and options.
>>>>
>>>>    
>>>>
>>>>
>>>
>>> I saw that.  Those are convenient goals.
>>>
>>>  
>>>
>>>
>>>> -- Michelle
>>>>
>>>>    
>>>>
>>>>
>>>>> --matthew
>>>>> *Matthew T. Adams*
>>>>> Corporate Technical Advisor & Senior Consultant
>>>>> Mobile:  +1 253 732 1051
>>>>> Phone:  +1 206 331 3833
>>>>> Fax:  +1 815 331 0952
>>>>> matthew.adams@xcalia.com <ma...@xcalia.com>
>>>>> P.O. Box 24163
>>>>> Federal Way, WA  98093
>>>>> www.xcalia.com <http://www.xcalia.com/>
>>>>> Xcalia makes implementing SOA easy with agile business      
>>>>>
>>>> intermediation    
>>>>
>>>>> software that combines heterogeneous data with services to easily 
>>>>> develop and deploy transactional composite applications.       
>>>>>
>>>> Enterprises    
>>>>
>>>>> can quickly respond to changing business requirements and      
>>>>>
>>>> dramatically    
>>>>
>>>>> reduce the costs of data access and service integration.
>>>>>
>>>>>      
>>>>>
>>>>>
>>>>
>>>>    
>>>>
>>>>
>>>
>>>
>>>
>>>  
>>>
>>>
>>
>> -- 
>> Karan Singh
>>
>>
>
> 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!
>
>

-- 
Karan Singh


Re: Run single TCK test?

Posted by Craig Russell <Cr...@Sun.COM>.
Hi Karan,

I'm missing some concepts with the maven console. Could you please  
give us a sample maven console run?

Thanks,

Craig

On Sep 22, 2005, at 9:01 AM, karan malhi wrote:

> Hi Matthew,
>
> You can also try maven console, if you are running single tests.  
> This will save you some jvm startup time.
>
>
> Matthew T. Adams wrote:
>
>
>>>> How do I run a single test method or test class?  I'd like
>>>>
>>> to be able
>>>
>>>> to do it via the command line as well as in NetBeans so that I  
>>>> can debug it.  Do I have to create my own configuration file in
>>>>
>>> test/conf
>>>
>>>> (.list & .conf) for each test I want to run alone?
>>>>
>>>>
>>> You need your own .conf file and you invoke it with - 
>>> Djdo.tck.cfglist=<your conf> on the maven command line.  Take a  
>>> look at step 12. on http://wiki.apache.org/jdo/ 
>>> TechnologyCompatibilityKit#HowTo
>>>
>>>
>>>
>>
>> As I figured.  I've already got my detach.list & detach.conf files  
>> going.
>>
>>
>>
>>>>  Also, which target is the most appropriate to build tck20 plus  
>>>> its dependencies without executing the near-20-minute
>>>>
>>> installSchema target?
>>>
>>> Michael B. has just added some nice multiproject goals in jdo/ 
>>> trunk.  From there you can do maven tck20.build.  Unfortunately,  
>>> this does get you the lengthy installSchema goal as well.  So we  
>>> really don't have a single target that meets your requirements.   
>>> However, you're gonna need a schema installed for most anything  
>>> you do, aren't you?  So you just do it once.  Otherwise, you can  
>>> take a look at either trunk/README.txt or trunk/ 
>>> project.properties to find out the order of dependencies and  
>>> invoke maven in each of the subdirectories.  You need to build  
>>> api20, core20, enhancer20, then tck20.
>>>
>>>
>>>
>>
>> Yes, I only want to run installSchema once, unless I'm going to  
>> lunch or
>> something while it runs.  I'd like to be able to build tck20, though,
>> without running the installSchema target.  I'll look at adding  
>> that goal --
>> is it one of the standard maven goals like multiproject:install- 
>> snapshot or
>> something like that?
>>
>>
>>
>>
>>> In case you haven't heard, you can do maven help in tck20 to get  
>>> some help text for goals and options.
>>>
>>>
>>>
>>
>> I saw that.  Those are convenient goals.
>>
>>
>>
>>> -- Michelle
>>>
>>>
>>>
>>>> --matthew
>>>> *Matthew T. Adams*
>>>> Corporate Technical Advisor & Senior Consultant
>>>> Mobile:  +1 253 732 1051
>>>> Phone:  +1 206 331 3833
>>>> Fax:  +1 815 331 0952
>>>> matthew.adams@xcalia.com <ma...@xcalia.com>
>>>> P.O. Box 24163
>>>> Federal Way, WA  98093
>>>> www.xcalia.com <http://www.xcalia.com/>
>>>> Xcalia makes implementing SOA easy with agile business
>>>>
>>> intermediation
>>>
>>>> software that combines heterogeneous data with services to  
>>>> easily develop and deploy transactional composite applications.
>>>>
>>> Enterprises
>>>
>>>> can quickly respond to changing business requirements and
>>>>
>>> dramatically
>>>
>>>> reduce the costs of data access and service integration.
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>>
>>
>>
>
> -- 
> Karan Singh
>
>

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!


Re: Run single TCK test?

Posted by karan malhi <ka...@gmail.com>.
Hi Matthew,

You can also try maven console, if you are running single tests. This 
will save you some jvm startup time.


Matthew T. Adams wrote:

>>>How do I run a single test method or test class?  I'd like 
>>>      
>>>
>>to be able 
>>    
>>
>>>to do it via the command line as well as in NetBeans so that I can 
>>>debug it.  Do I have to create my own configuration file in 
>>>      
>>>
>>test/conf 
>>    
>>
>>>(.list & .conf) for each test I want to run alone?
>>>      
>>>
>>You need your own .conf file and you invoke it with 
>>-Djdo.tck.cfglist=<your conf> on the maven command line.  Take 
>>a look at 
>>step 12. on http://wiki.apache.org/jdo/TechnologyCompatibilityKit#HowTo
>>
>>    
>>
>
>As I figured.  I've already got my detach.list & detach.conf files going.
>
>  
>
>>>  Also, which target is the most appropriate to build tck20 plus its 
>>>dependencies without executing the near-20-minute 
>>>      
>>>
>>installSchema target?
>>
>>Michael B. has just added some nice multiproject goals in jdo/trunk.  
>>>From there you can do maven tck20.build.  Unfortunately, this 
>>does get 
>>you the lengthy installSchema goal as well.  So we really don't have a 
>>single target that meets your requirements.  However, you're 
>>gonna need 
>>a schema installed for most anything you do, aren't you?  So 
>>you just do 
>>it once.  Otherwise, you can take a look at either trunk/README.txt or 
>>trunk/project.properties to find out the order of dependencies and 
>>invoke maven in each of the subdirectories.  You need to build api20, 
>>core20, enhancer20, then tck20.
>>
>>    
>>
>
>Yes, I only want to run installSchema once, unless I'm going to lunch or
>something while it runs.  I'd like to be able to build tck20, though,
>without running the installSchema target.  I'll look at adding that goal --
>is it one of the standard maven goals like multiproject:install-snapshot or
>something like that?
>
>
>  
>
>>In case you haven't heard, you can do maven help in tck20 to get some 
>>help text for goals and options.
>>
>>    
>>
>
>I saw that.  Those are convenient goals.
>
>  
>
>>-- Michelle
>>
>>    
>>
>>> 
>>>--matthew
>>> 
>>>*Matthew T. Adams*
>>>Corporate Technical Advisor & Senior Consultant
>>>Mobile:  +1 253 732 1051
>>>Phone:  +1 206 331 3833
>>>Fax:  +1 815 331 0952
>>>matthew.adams@xcalia.com <ma...@xcalia.com>
>>>P.O. Box 24163
>>>Federal Way, WA  98093
>>>www.xcalia.com <http://www.xcalia.com/>
>>> 
>>> 
>>>Xcalia makes implementing SOA easy with agile business 
>>>      
>>>
>>intermediation 
>>    
>>
>>>software that combines heterogeneous data with services to easily 
>>>develop and deploy transactional composite applications.  
>>>      
>>>
>>Enterprises 
>>    
>>
>>>can quickly respond to changing business requirements and 
>>>      
>>>
>>dramatically 
>>    
>>
>>>reduce the costs of data access and service integration.
>>> 
>>>      
>>>
>>
>>    
>>
>
>
>
>  
>

-- 
Karan Singh


RE: Run single TCK test?

Posted by "Matthew T. Adams" <ma...@xcalia.com>.
>> How do I run a single test method or test class?  I'd like 
>to be able 
>> to do it via the command line as well as in NetBeans so that I can 
>> debug it.  Do I have to create my own configuration file in 
>test/conf 
>> (.list & .conf) for each test I want to run alone?
>
>You need your own .conf file and you invoke it with 
>-Djdo.tck.cfglist=<your conf> on the maven command line.  Take 
>a look at 
>step 12. on http://wiki.apache.org/jdo/TechnologyCompatibilityKit#HowTo
>

As I figured.  I've already got my detach.list & detach.conf files going.

>>   Also, which target is the most appropriate to build tck20 plus its 
>> dependencies without executing the near-20-minute 
>installSchema target?
>
>Michael B. has just added some nice multiproject goals in jdo/trunk.  
> From there you can do maven tck20.build.  Unfortunately, this 
>does get 
>you the lengthy installSchema goal as well.  So we really don't have a 
>single target that meets your requirements.  However, you're 
>gonna need 
>a schema installed for most anything you do, aren't you?  So 
>you just do 
>it once.  Otherwise, you can take a look at either trunk/README.txt or 
>trunk/project.properties to find out the order of dependencies and 
>invoke maven in each of the subdirectories.  You need to build api20, 
>core20, enhancer20, then tck20.
>

Yes, I only want to run installSchema once, unless I'm going to lunch or
something while it runs.  I'd like to be able to build tck20, though,
without running the installSchema target.  I'll look at adding that goal --
is it one of the standard maven goals like multiproject:install-snapshot or
something like that?


>In case you haven't heard, you can do maven help in tck20 to get some 
>help text for goals and options.
>

I saw that.  Those are convenient goals.

>-- Michelle
>
>>  
>> --matthew
>>  
>> *Matthew T. Adams*
>> Corporate Technical Advisor & Senior Consultant
>> Mobile:  +1 253 732 1051
>> Phone:  +1 206 331 3833
>> Fax:  +1 815 331 0952
>> matthew.adams@xcalia.com <ma...@xcalia.com>
>> P.O. Box 24163
>> Federal Way, WA  98093
>> www.xcalia.com <http://www.xcalia.com/>
>>  
>>  
>> Xcalia makes implementing SOA easy with agile business 
>intermediation 
>> software that combines heterogeneous data with services to easily 
>> develop and deploy transactional composite applications.  
>Enterprises 
>> can quickly respond to changing business requirements and 
>dramatically 
>> reduce the costs of data access and service integration.
>>  
>
>
>



Re: Run single TCK test?

Posted by Michelle Caisse <Mi...@Sun.COM>.
Hi Matthew,

Good questions.

Matthew T. Adams wrote:

> Hi all,
>  
> Please forgive if dumb questions.
>  
> How do I run a single test method or test class?  I'd like to be able 
> to do it via the command line as well as in NetBeans so that I can 
> debug it.  Do I have to create my own configuration file in test/conf 
> (.list & .conf) for each test I want to run alone?

You need your own .conf file and you invoke it with 
-Djdo.tck.cfglist=<your conf> on the maven command line.  Take a look at 
step 12. on http://wiki.apache.org/jdo/TechnologyCompatibilityKit#HowTo

>   Also, which target is the most appropriate to build tck20 plus its 
> dependencies without executing the near-20-minute installSchema target?

Michael B. has just added some nice multiproject goals in jdo/trunk.  
 From there you can do maven tck20.build.  Unfortunately, this does get 
you the lengthy installSchema goal as well.  So we really don't have a 
single target that meets your requirements.  However, you're gonna need 
a schema installed for most anything you do, aren't you?  So you just do 
it once.  Otherwise, you can take a look at either trunk/README.txt or 
trunk/project.properties to find out the order of dependencies and 
invoke maven in each of the subdirectories.  You need to build api20, 
core20, enhancer20, then tck20.

In case you haven't heard, you can do maven help in tck20 to get some 
help text for goals and options.

-- Michelle

>  
> --matthew
>  
> *Matthew T. Adams*
> Corporate Technical Advisor & Senior Consultant
> Mobile:  +1 253 732 1051
> Phone:  +1 206 331 3833
> Fax:  +1 815 331 0952
> matthew.adams@xcalia.com <ma...@xcalia.com>
> P.O. Box 24163
> Federal Way, WA  98093
> www.xcalia.com <http://www.xcalia.com/>
>  
>  
> Xcalia makes implementing SOA easy with agile business intermediation 
> software that combines heterogeneous data with services to easily 
> develop and deploy transactional composite applications.  Enterprises 
> can quickly respond to changing business requirements and dramatically 
> reduce the costs of data access and service integration.
>