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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to