Firing off ant task before junit test

Or something like that...

Here is what I need. To run some of the Junit tests I have setup in the
idea run config, they rely on specific files which need to exist in a
certain location. Normally with ant, an ant task copies the files, then
runs the tests.

What I need is a way to either call this ant task somehow, or be able to put
in some parameters somewhere in those junit tests to make sure my
environment is setup correctly.

Feature request, or can this be done now and I don't see how?

Thanks
R

4 comments

Robert

>What I need is a way to either call this ant task somehow,
>

It's already there:
1°/ Right-click on the ant target that sets your config files, and select
"Execute on.Before Run/Debug".

2°/ pick the JUnit run config

For some reason, execute."After Run/Debug" is missing.
There is an old request to fix that:
"Ant target : .[run AFTER run/debug] "
http://www.intellij.net/tracker/idea/viewSCR?publicId=3889

Alain

0

Ah thanks my good man... They should mention it in the Junit test section, I
didn't see it, it's probably in the ant sectction.

R


On 11/23/04 6:53 PM, in article co0ih3$3hn$1@is.intellij.net, "Alain Ravet"
<alain.ravet@biz.tiscali.be> wrote:

Robert

>> What I need is a way to either call this ant task somehow,
>>


It's already there:
1°/ Right-click on the ant target that sets your config files, and select
"Execute on.Before Run/Debug".

2°/ pick the JUnit run config

For some reason, execute."After Run/Debug" is missing.
There is an old request to fix that:
"Ant target : .[run AFTER run/debug] "
http://www.intellij.net/tracker/idea/viewSCR?publicId=3889

Alain


0

Hey Alain, you'd better check Execute after is there too :)

R


On 11/23/04 10:18 PM, in article BDC967B4.26BC%robert@codepuccino.com,
"Robert S. Sfeir" <robert@codepuccino.com> wrote:

Ah thanks my good man... They should mention it in the Junit test section, I
didn't see it, it's probably in the ant sectction.

R


On 11/23/04 6:53 PM, in article co0ih3$3hn$1@is.intellij.net, "Alain Ravet"
<alain.ravet@biz.tiscali.be> wrote:

>> Robert
>>
>>> What I need is a way to either call this ant task somehow,
>>>
>>
>> It's already there:
>> 1°/ Right-click on the ant target that sets your config files, and select
>> "Execute on.Before Run/Debug".
>>
>> 2°/ pick the JUnit run config
>>
>> For some reason, execute."After Run/Debug" is missing.
>> There is an old request to fix that:
>> "Ant target : .[run AFTER run/debug] "
>> http://www.intellij.net/tracker/idea/viewSCR?publicId=3889
>>
>> Alain


0

I take that back I read too fast. The trick I was looking for works though,
thanks very much!

R


On 11/23/04 10:25 PM, in article BDC9694E.26C4%robert@codepuccino.com,
"Robert S. Sfeir" <robert@codepuccino.com> wrote:

Hey Alain, you'd better check Execute after is there too :)

R


On 11/23/04 10:18 PM, in article BDC967B4.26BC%robert@codepuccino.com,
"Robert S. Sfeir" <robert@codepuccino.com> wrote:

>> Ah thanks my good man... They should mention it in the Junit test section, I
>> didn't see it, it's probably in the ant sectction.
>>
>> R
>>
>>
>> On 11/23/04 6:53 PM, in article co0ih3$3hn$1@is.intellij.net, "Alain Ravet"
>> <alain.ravet@biz.tiscali.be> wrote:
>>
>>> Robert
>>>
>>>> What I need is a way to either call this ant task somehow,
>>>>
>>>
>>> It's already there:
>>> 1°/ Right-click on the ant target that sets your config files, and select
>>> "Execute on.Before Run/Debug".
>>>
>>> 2°/ pick the JUnit run config
>>>
>>> For some reason, execute."After Run/Debug" is missing.
>>> There is an old request to fix that:
>>> "Ant target : .[run AFTER run/debug] "
>>> http://www.intellij.net/tracker/idea/viewSCR?publicId=3889
>>>
>>> Alain
>>


0

Please sign in to leave a comment.