You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Simone Tripodi <si...@gmail.com> on 2008/08/28 18:41:42 UTC

Gunit Surefire integration

Hi folks,
I'm interested in using gunit
(http://antlr.org/wiki/display/ANTLR3/gUnit+-+Grammar+Unit+Testing)
using the Surefire plugin, I already sent the same request to the
ANTLR mailing list but it seems nobody knows the solution...
Can anyone suggests me something? Thanks in advance!
Best regards,
Simone

-- 
My LinkedIn profile: http://www.linkedin.com/in/simonetripodi
My GoogleCode profile: http://code.google.com/u/simone.tripodi/
My Picasa: http://picasaweb.google.com/simone.tripodi/
My Tube: http://www.youtube.com/user/stripodi
My Del.icio.us: http://del.icio.us/simone.tripodi

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Gunit Surefire integration

Posted by Simone Tripodi <si...@gmail.com>.
Hi Stephen,
thank you very much for your help!
Rather than adding dependencies section to the plugin, I just resolved
changing the classpath scope, configuring the exec plugin like this:

 <configuration>
            ...
            <classpathScope>test</classpathScope>
            ...
        </configuration>

Thank you very much for your help and for your time!
Best regards,
Simone

2008/8/29 Stephen Connolly <st...@gmail.com>:
> add the dependencies section to the plugin
>
> Sent from my iPod
>
> On 29 Aug 2008, at 10:19, "Simone Tripodi" <si...@gmail.com> wrote:
>
>> Hi Stephen,
>> sorry again: I'm following the specs of Exec-Plugin on
>>
>>
>> http://mojo.codehaus.org/exec-maven-plugin/examples/example-exec-for-java-programs.html
>>
>> According to the documentation:
>>
>> [snip]
>>       <configuration>
>>         <executable>java</executable>
>>         <arguments>
>>           <argument>-Dmyproperty=myvalue</argument>
>>           <argument>-classpath</argument>
>>           <!-- automatically creates the classpath using all project
>> dependencies,
>>                also adding the project build directory -->
>>           <classpath/>
>>           <argument>com.example.Main</argument>
>>           ...
>>         </arguments>
>>       </configuration>
>> [/snip]
>>
>> but when running the execution, test-scoped dependencies are not
>> included in the classpath; is there a way to include them or I must
>> change the scope of them?
>> Thank you in advance,
>> Simone
>>
>> 2008/8/28 Simone Tripodi <si...@gmail.com>:
>>>
>>> Hi Stephen,
>>> thank you very much for your hints!
>>> Best regards,
>>> Simone
>>>
>>> 2008/8/28 Stephen Connolly <st...@gmail.com>:
>>>>
>>>> you should be able to use the exec-maven-plugin attached to the
>>>> generate-test-sources phase in order to generate the junit tests from
>>>> your
>>>> grammar. then use build-helper to attach the generated test sources so
>>>> they
>>>> will be compiled in the test-compile phase and then surefire will pick
>>>> them
>>>> up
>>>>
>>>> Sent from my iPod
>>>>
>>>> On 28 Aug 2008, at 17:41, "Simone Tripodi" <si...@gmail.com>
>>>> wrote:
>>>>
>>>>> Hi folks,
>>>>> I'm interested in using gunit
>>>>> (http://antlr.org/wiki/display/ANTLR3/gUnit+-+Grammar+Unit+Testing)
>>>>> using the Surefire plugin, I already sent the same request to the
>>>>> ANTLR mailing list but it seems nobody knows the solution...
>>>>> Can anyone suggests me something? Thanks in advance!
>>>>> Best regards,
>>>>> Simone
>>>>>
>>>>> --
>>>>> My LinkedIn profile: http://www.linkedin.com/in/simonetripodi
>>>>> My GoogleCode profile: http://code.google.com/u/simone.tripodi/
>>>>> My Picasa: http://picasaweb.google.com/simone.tripodi/
>>>>> My Tube: http://www.youtube.com/user/stripodi
>>>>> My Del.icio.us: http://del.icio.us/simone.tripodi
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> My LinkedIn profile: http://www.linkedin.com/in/simonetripodi
>>> My GoogleCode profile: http://code.google.com/u/simone.tripodi/
>>> My Sourceforge: https://sourceforge.net/users/stripodi
>>> My Picasa: http://picasaweb.google.com/simone.tripodi/
>>> My Tube: http://www.youtube.com/user/stripodi
>>> My Del.icio.us: http://del.icio.us/simone.tripodi
>>>
>>
>>
>>
>> --
>> My LinkedIn profile: http://www.linkedin.com/in/simonetripodi
>> My GoogleCode profile: http://code.google.com/u/simone.tripodi/
>> My Sourceforge: https://sourceforge.net/users/stripodi
>> My Picasa: http://picasaweb.google.com/simone.tripodi/
>> My Tube: http://www.youtube.com/user/stripodi
>> My Del.icio.us: http://del.icio.us/simone.tripodi
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>



-- 
My LinkedIn profile: http://www.linkedin.com/in/simonetripodi
My GoogleCode profile: http://code.google.com/u/simone.tripodi/
My Sourceforge: https://sourceforge.net/users/stripodi
My Picasa: http://picasaweb.google.com/simone.tripodi/
My Tube: http://www.youtube.com/user/stripodi
My Del.icio.us: http://del.icio.us/simone.tripodi

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Gunit Surefire integration

Posted by Stephen Connolly <st...@gmail.com>.
add the dependencies section to the plugin

Sent from my iPod

On 29 Aug 2008, at 10:19, "Simone Tripodi" <si...@gmail.com>  
wrote:

> Hi Stephen,
> sorry again: I'm following the specs of Exec-Plugin on
>
> http://mojo.codehaus.org/exec-maven-plugin/examples/example-exec-for-java-programs.html
>
> According to the documentation:
>
> [snip]
>        <configuration>
>          <executable>java</executable>
>          <arguments>
>            <argument>-Dmyproperty=myvalue</argument>
>            <argument>-classpath</argument>
>            <!-- automatically creates the classpath using all project
> dependencies,
>                 also adding the project build directory -->
>            <classpath/>
>            <argument>com.example.Main</argument>
>            ...
>          </arguments>
>        </configuration>
> [/snip]
>
> but when running the execution, test-scoped dependencies are not
> included in the classpath; is there a way to include them or I must
> change the scope of them?
> Thank you in advance,
> Simone
>
> 2008/8/28 Simone Tripodi <si...@gmail.com>:
>> Hi Stephen,
>> thank you very much for your hints!
>> Best regards,
>> Simone
>>
>> 2008/8/28 Stephen Connolly <st...@gmail.com>:
>>> you should be able to use the exec-maven-plugin attached to the
>>> generate-test-sources phase in order to generate the junit tests  
>>> from your
>>> grammar. then use build-helper to attach the generated test  
>>> sources so they
>>> will be compiled in the test-compile phase and then surefire will  
>>> pick them
>>> up
>>>
>>> Sent from my iPod
>>>
>>> On 28 Aug 2008, at 17:41, "Simone Tripodi"  
>>> <si...@gmail.com> wrote:
>>>
>>>> Hi folks,
>>>> I'm interested in using gunit
>>>> (http://antlr.org/wiki/display/ANTLR3/gUnit+-+Grammar+Unit+Testing)
>>>> using the Surefire plugin, I already sent the same request to the
>>>> ANTLR mailing list but it seems nobody knows the solution...
>>>> Can anyone suggests me something? Thanks in advance!
>>>> Best regards,
>>>> Simone
>>>>
>>>> --
>>>> My LinkedIn profile: http://www.linkedin.com/in/simonetripodi
>>>> My GoogleCode profile: http://code.google.com/u/simone.tripodi/
>>>> My Picasa: http://picasaweb.google.com/simone.tripodi/
>>>> My Tube: http://www.youtube.com/user/stripodi
>>>> My Del.icio.us: http://del.icio.us/simone.tripodi
>>>>
>>>> --- 
>>>> ------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>
>>>
>>> --- 
>>> ------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>
>>
>>
>> --
>> My LinkedIn profile: http://www.linkedin.com/in/simonetripodi
>> My GoogleCode profile: http://code.google.com/u/simone.tripodi/
>> My Sourceforge: https://sourceforge.net/users/stripodi
>> My Picasa: http://picasaweb.google.com/simone.tripodi/
>> My Tube: http://www.youtube.com/user/stripodi
>> My Del.icio.us: http://del.icio.us/simone.tripodi
>>
>
>
>
> -- 
> My LinkedIn profile: http://www.linkedin.com/in/simonetripodi
> My GoogleCode profile: http://code.google.com/u/simone.tripodi/
> My Sourceforge: https://sourceforge.net/users/stripodi
> My Picasa: http://picasaweb.google.com/simone.tripodi/
> My Tube: http://www.youtube.com/user/stripodi
> My Del.icio.us: http://del.icio.us/simone.tripodi
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Gunit Surefire integration

Posted by Simone Tripodi <si...@gmail.com>.
Hi Stephen,
sorry again: I'm following the specs of Exec-Plugin on

http://mojo.codehaus.org/exec-maven-plugin/examples/example-exec-for-java-programs.html

According to the documentation:

[snip]
        <configuration>
          <executable>java</executable>
          <arguments>
            <argument>-Dmyproperty=myvalue</argument>
            <argument>-classpath</argument>
            <!-- automatically creates the classpath using all project
dependencies,
                 also adding the project build directory -->
            <classpath/>
            <argument>com.example.Main</argument>
            ...
          </arguments>
        </configuration>
[/snip]

but when running the execution, test-scoped dependencies are not
included in the classpath; is there a way to include them or I must
change the scope of them?
Thank you in advance,
Simone

2008/8/28 Simone Tripodi <si...@gmail.com>:
> Hi Stephen,
> thank you very much for your hints!
> Best regards,
> Simone
>
> 2008/8/28 Stephen Connolly <st...@gmail.com>:
>> you should be able to use the exec-maven-plugin attached to the
>> generate-test-sources phase in order to generate the junit tests from your
>> grammar. then use build-helper to attach the generated test sources so they
>> will be compiled in the test-compile phase and then surefire will pick them
>> up
>>
>> Sent from my iPod
>>
>> On 28 Aug 2008, at 17:41, "Simone Tripodi" <si...@gmail.com> wrote:
>>
>>> Hi folks,
>>> I'm interested in using gunit
>>> (http://antlr.org/wiki/display/ANTLR3/gUnit+-+Grammar+Unit+Testing)
>>> using the Surefire plugin, I already sent the same request to the
>>> ANTLR mailing list but it seems nobody knows the solution...
>>> Can anyone suggests me something? Thanks in advance!
>>> Best regards,
>>> Simone
>>>
>>> --
>>> My LinkedIn profile: http://www.linkedin.com/in/simonetripodi
>>> My GoogleCode profile: http://code.google.com/u/simone.tripodi/
>>> My Picasa: http://picasaweb.google.com/simone.tripodi/
>>> My Tube: http://www.youtube.com/user/stripodi
>>> My Del.icio.us: http://del.icio.us/simone.tripodi
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
>
>
> --
> My LinkedIn profile: http://www.linkedin.com/in/simonetripodi
> My GoogleCode profile: http://code.google.com/u/simone.tripodi/
> My Sourceforge: https://sourceforge.net/users/stripodi
> My Picasa: http://picasaweb.google.com/simone.tripodi/
> My Tube: http://www.youtube.com/user/stripodi
> My Del.icio.us: http://del.icio.us/simone.tripodi
>



-- 
My LinkedIn profile: http://www.linkedin.com/in/simonetripodi
My GoogleCode profile: http://code.google.com/u/simone.tripodi/
My Sourceforge: https://sourceforge.net/users/stripodi
My Picasa: http://picasaweb.google.com/simone.tripodi/
My Tube: http://www.youtube.com/user/stripodi
My Del.icio.us: http://del.icio.us/simone.tripodi

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Gunit Surefire integration

Posted by Simone Tripodi <si...@gmail.com>.
Hi Stephen,
thank you very much for your hints!
Best regards,
Simone

2008/8/28 Stephen Connolly <st...@gmail.com>:
> you should be able to use the exec-maven-plugin attached to the
> generate-test-sources phase in order to generate the junit tests from your
> grammar. then use build-helper to attach the generated test sources so they
> will be compiled in the test-compile phase and then surefire will pick them
> up
>
> Sent from my iPod
>
> On 28 Aug 2008, at 17:41, "Simone Tripodi" <si...@gmail.com> wrote:
>
>> Hi folks,
>> I'm interested in using gunit
>> (http://antlr.org/wiki/display/ANTLR3/gUnit+-+Grammar+Unit+Testing)
>> using the Surefire plugin, I already sent the same request to the
>> ANTLR mailing list but it seems nobody knows the solution...
>> Can anyone suggests me something? Thanks in advance!
>> Best regards,
>> Simone
>>
>> --
>> My LinkedIn profile: http://www.linkedin.com/in/simonetripodi
>> My GoogleCode profile: http://code.google.com/u/simone.tripodi/
>> My Picasa: http://picasaweb.google.com/simone.tripodi/
>> My Tube: http://www.youtube.com/user/stripodi
>> My Del.icio.us: http://del.icio.us/simone.tripodi
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>



-- 
My LinkedIn profile: http://www.linkedin.com/in/simonetripodi
My GoogleCode profile: http://code.google.com/u/simone.tripodi/
My Sourceforge: https://sourceforge.net/users/stripodi
My Picasa: http://picasaweb.google.com/simone.tripodi/
My Tube: http://www.youtube.com/user/stripodi
My Del.icio.us: http://del.icio.us/simone.tripodi

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Gunit Surefire integration

Posted by Stephen Connolly <st...@gmail.com>.
you should be able to use the exec-maven-plugin attached to the  
generate-test-sources phase in order to generate the junit tests from  
your grammar. then use build-helper to attach the generated test  
sources so they will be compiled in the test-compile phase and then  
surefire will pick them up

Sent from my iPod

On 28 Aug 2008, at 17:41, "Simone Tripodi" <si...@gmail.com>  
wrote:

> Hi folks,
> I'm interested in using gunit
> (http://antlr.org/wiki/display/ANTLR3/gUnit+-+Grammar+Unit+Testing)
> using the Surefire plugin, I already sent the same request to the
> ANTLR mailing list but it seems nobody knows the solution...
> Can anyone suggests me something? Thanks in advance!
> Best regards,
> Simone
>
> -- 
> My LinkedIn profile: http://www.linkedin.com/in/simonetripodi
> My GoogleCode profile: http://code.google.com/u/simone.tripodi/
> My Picasa: http://picasaweb.google.com/simone.tripodi/
> My Tube: http://www.youtube.com/user/stripodi
> My Del.icio.us: http://del.icio.us/simone.tripodi
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org