Ant run-test-list target

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Ant run-test-list target

Jeffl
I want to run multiple unit tests as part of a daily build process.  I've found the ant target 'run-test-list' in build.xml, which invokes another ant target 'all-tests' in test-list-build.xml.   I don't have test-list-build.xml, and I've not had any luck finding an example that would indicate what the syntax is.  


Jeff Lowery
[hidden email]



Reply | Threaded
Open this post in threaded view
|

Re: Ant run-test-list target

Jacques Le Roux
Administrator
Release.revision?

Jacques

Jeff Lowery wrote:
> I want to run multiple unit tests as part of a daily build process.  I've found the ant target 'run-test-list' in build.xml,
> which invokes another ant target 'all-tests' in test-list-build.xml.   I don't have test-list-build.xml, and I've not had any
> luck finding an example that would indicate what the syntax is.  
>
>
> Jeff Lowery
> [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: Ant run-test-list target

Jeffl
<quote author="Jacques Le Roux">
Release.revision?

1104

Reply | Threaded
Open this post in threaded view
|

Re: Ant run-test-list target

Jacques Le Roux
Administrator
There is a simple syntax (not specific to OFBiz):

ant -p

There you will find easy examples to follow

Jacques


From: "Jeffl" <[hidden email]>
> Release.revision?
>
> 1104
>
>
>
> --
> View this message in context: http://ofbiz.135035.n4.nabble.com/Ant-run-test-list-target-tp4609039p4609344.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
Reply | Threaded
Open this post in threaded view
|

Re: Ant run-test-list target

Pierre Smits
Jeff,

./ant -p will give you alle ant targets you can execute, but it won't give
you the unit tests that are available in OFBiz. But it will tell you how to
kick off test suites and individual tests.

If you want to find out what test suites and unit tests are available, you
have to look inside each test definition in the testdef folder of each
application and/or component.

Regards,

Pierre

2012/5/5 Jacques Le Roux <[hidden email]>

> There is a simple syntax (not specific to OFBiz):
>
> ant -p
>
> There you will find easy examples to follow
>
> Jacques
>
>
> From: "Jeffl" <[hidden email]>
>
>  Release.revision?
>>
>> 1104
>>
>>
>>
>> --
>> View this message in context: http://ofbiz.135035.n4.nabble.**
>> com/Ant-run-test-list-target-**tp4609039p4609344.html<http://ofbiz.135035.n4.nabble.com/Ant-run-test-list-target-tp4609039p4609344.html>
>> Sent from the OFBiz - User mailing list archive at Nabble.com.
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: Ant run-test-list target

Jeffl
Okay, so it's just another ant build file which will somehow execute test targets in the main build via dependencies/calls to those targets.  It's been awhile since I've played around with ant, but it doesn't sound too hard. Thanks for clarifying.

-- Jeff