Tests and ant targets

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

Tests and ant targets

Erwan de FERRIERES-3
Hi all,

I'm starting to investigate the tests in OFBiz, and I'm looking at first
at the different ant targets we have in the main build.xml.

* when launching a *run-single-test-suite* task, we are calling first
_restore-runtime-data, and then the test fails as there is no
runtime/data.zip file to extract.
The only manner to create this file is to use the run-test-list target,
which calls _setup-separated-test-run, and which need this file to
execute tests : runtime/test-list-build.xml

But I can't find any example of this file or indications on how to write it.

So, if someone can help me on this point, this would be really appreciated.

TIA,

--
Erwan
Reply | Threaded
Open this post in threaded view
|

Re: Tests and ant targets

Scott Gray-2
Hi Erwan,

If you give me a day or so, I'll go through and clean up the targets.

Adam, is it okay with you if I remove the save/restore runtime data  
stuff now that we have the delegator performing rollbacks?

Regards
Scott

On 2/12/2009, at 10:21 PM, Erwan de FERRIERES wrote:

> Hi all,
>
> I'm starting to investigate the tests in OFBiz, and I'm looking at  
> first at the different ant targets we have in the main build.xml.
>
> * when launching a *run-single-test-suite* task, we are calling  
> first _restore-runtime-data, and then the test fails as there is no  
> runtime/data.zip file to extract.
> The only manner to create this file is to use the run-test-list  
> target, which calls _setup-separated-test-run, and which need this  
> file to execute tests : runtime/test-list-build.xml
>
> But I can't find any example of this file or indications on how to  
> write it.
>
> So, if someone can help me on this point, this would be really  
> appreciated.
>
> TIA,
>
> --
> Erwan


smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Tests and ant targets

Adam Heath-2
Scott Gray wrote:
> Hi Erwan,
>
> If you give me a day or so, I'll go through and clean up the targets.
>
> Adam, is it okay with you if I remove the save/restore runtime data
> stuff now that we have the delegator unperforming rollbacks?

Sure.  The new way performs faster.
Reply | Threaded
Open this post in threaded view
|

Re: Tests and ant targets

Erwan de FERRIERES-3
In reply to this post by Scott Gray-2


Le 02/12/2009 10:24, Scott Gray a écrit :
> Hi Erwan,
>
> If you give me a day or so, I'll go through and clean up the targets.
>

Waiting for you !

Thanks,

--
Erwan