You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Stephen Connolly <st...@gmail.com> on 2009/12/19 09:36:35 UTC

Re: How can I automate the testing of my archetype? Maven Build from TestNG?

i'd use the invoker plugin

2009/12/18 JavaGeek <no...@boscarine.com>

>
> Hello All,
> Does anyone have advice on automating the testing of an archetype?
>
> I am a community volunteer helping out the JBoss folks with their Weld Java
> EE 6 archetypes.  I currently have a bash script I use to test it, but it
> requires *NIX and presently requires manually running a selenium test.  I'd
> like to automate it so Hudson can catch my mistakes.
>
> Surely I am not the first guy who built an archetype and wanted to test it
> from Continuous Integration, has someone already solved this problem?
>
> I would guess the ideal would be to have a TestNG/JUnit test that does the
> following:
> 1.  Create new project from archetype in memory or a temp directory
> somewhere.  It won't be needed once the test has finished running.
> 2.  Run maven commands on the new project (mvn test jetty:run) to confirm
> the unit tests pass.
> 3.  Trigger an HttpUnit test to confirm the JSF code renders correctly.
>
> If there's no pre-canned solution to this problem, how difficult would it
> be
> to have one project run maven from TestNG to trigger the archetype:generate
> and then a maven build from JUnit or TestNG?
>
> Thanks in advance,
> Steven
>
>
>
> --
> View this message in context:
> http://old.nabble.com/How-can-I-automate-the-testing-of-my-archetype---Maven-Build-from-TestNG--tp26850764p26850764.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: How can I automate the testing of my archetype? Maven Build from TestNG?

Posted by Jeff MAURY <je...@gmail.com>.
Have a look at the documentation or consult the source code for the
maven-compiler-plugin to see it in action.

Regards
Jeff


On Sat, Dec 19, 2009 at 10:20 AM, Donszelmann Mark <
mark.donszelmann@gmail.com> wrote:

> Hi
>
> do you have an example ?
>
> Regards
> Mark Donszelmann
>
> On Dec 19, 2009, at 9:36 AM, Stephen Connolly wrote:
>
> > i'd use the invoker plugin
> >
> > 2009/12/18 JavaGeek <no...@boscarine.com>
> >
> >>
> >> Hello All,
> >> Does anyone have advice on automating the testing of an archetype?
> >>
> >> I am a community volunteer helping out the JBoss folks with their Weld
> Java
> >> EE 6 archetypes.  I currently have a bash script I use to test it, but
> it
> >> requires *NIX and presently requires manually running a selenium test.
>  I'd
> >> like to automate it so Hudson can catch my mistakes.
> >>
> >> Surely I am not the first guy who built an archetype and wanted to test
> it
> >> from Continuous Integration, has someone already solved this problem?
> >>
> >> I would guess the ideal would be to have a TestNG/JUnit test that does
> the
> >> following:
> >> 1.  Create new project from archetype in memory or a temp directory
> >> somewhere.  It won't be needed once the test has finished running.
> >> 2.  Run maven commands on the new project (mvn test jetty:run) to
> confirm
> >> the unit tests pass.
> >> 3.  Trigger an HttpUnit test to confirm the JSF code renders correctly.
> >>
> >> If there's no pre-canned solution to this problem, how difficult would
> it
> >> be
> >> to have one project run maven from TestNG to trigger the
> archetype:generate
> >> and then a maven build from JUnit or TestNG?
> >>
> >> Thanks in advance,
> >> Steven
> >>
> >>
> >>
> >> --
> >> View this message in context:
> >>
> http://old.nabble.com/How-can-I-automate-the-testing-of-my-archetype---Maven-Build-from-TestNG--tp26850764p26850764.html
> >> Sent from the Maven - Users mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> 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
>
>


-- 
http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.lastfm.fr/listen/user/jeffmaury/personal

Re: How can I automate the testing of my archetype? Maven Build from TestNG?

Posted by Donszelmann Mark <ma...@gmail.com>.
Hi

do you have an example ?

Regards
Mark Donszelmann

On Dec 19, 2009, at 9:36 AM, Stephen Connolly wrote:

> i'd use the invoker plugin
> 
> 2009/12/18 JavaGeek <no...@boscarine.com>
> 
>> 
>> Hello All,
>> Does anyone have advice on automating the testing of an archetype?
>> 
>> I am a community volunteer helping out the JBoss folks with their Weld Java
>> EE 6 archetypes.  I currently have a bash script I use to test it, but it
>> requires *NIX and presently requires manually running a selenium test.  I'd
>> like to automate it so Hudson can catch my mistakes.
>> 
>> Surely I am not the first guy who built an archetype and wanted to test it
>> from Continuous Integration, has someone already solved this problem?
>> 
>> I would guess the ideal would be to have a TestNG/JUnit test that does the
>> following:
>> 1.  Create new project from archetype in memory or a temp directory
>> somewhere.  It won't be needed once the test has finished running.
>> 2.  Run maven commands on the new project (mvn test jetty:run) to confirm
>> the unit tests pass.
>> 3.  Trigger an HttpUnit test to confirm the JSF code renders correctly.
>> 
>> If there's no pre-canned solution to this problem, how difficult would it
>> be
>> to have one project run maven from TestNG to trigger the archetype:generate
>> and then a maven build from JUnit or TestNG?
>> 
>> Thanks in advance,
>> Steven
>> 
>> 
>> 
>> --
>> View this message in context:
>> http://old.nabble.com/How-can-I-automate-the-testing-of-my-archetype---Maven-Build-from-TestNG--tp26850764p26850764.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>> 
>> 
>> ---------------------------------------------------------------------
>> 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