[weld-issues] [JBoss JIRA] Commented: (WELDX-70) Automate testing of archetypes

Martin Gencur (JIRA) jira-events at lists.jboss.org
Wed Mar 3 09:00:10 EST 2010


    [ https://jira.jboss.org/jira/browse/WELDX-70?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12517872#action_12517872 ] 

Martin Gencur commented on WELDX-70:
------------------------------------

I commited first part of the testsuite ( r5991 and r5992 ). Currently the testsuite tests the simplest archetype (weld-jsf-servlet-minimal) with tomcat embedded and jetty emb., and the weld-jsf-jee-minimal (with jboss M2 standalone).  The weld-jsf-jee archetype currently cannot be deployed (WELDX-79) so no testsuite has been created.
This testsuite tests basic "test" target (unit tests) and also GUI of the web applications through selenium framework. 

For running current testsuite, do the following:
1) download and mvn install https://svn.jboss.org/repos/weld/archetypes/tags/1.0.0-BETA1/
2) download and mvn install "archetypes" and "common" subprojects from https://svn.jboss.org/repos/weld/ftest/
3) - for weld-jsf-servlet-minimal run   mvn -Pftest-embedded verify    or    mvn -Pftest-embedded -Dcontainer=jetty verify  in  1.0.0-BETA1/jsf/servlet-minimal directory
   - for weld-jsf-jee-minimal run mvn -Pftest-jboss verify  in  1.0.0-BETA1/jsf/jee-minimal directory (after running JBoss 6.0.0.M2 AS and setting JBOSS_HOME env variable)

- it will be also possible to test current SNAPSHOT version of Weld archetypes by mvn -Pftest-jboss verify -Darchetype.test.version=1.0.0-SNAPSHOT  but first this version has to be installed to local maven repo 

Later when I finish these tests I will also create a section at seamframework.org about this kind of testing (in depth).

> Automate testing of archetypes
> ------------------------------
>
>                 Key: WELDX-70
>                 URL: https://jira.jboss.org/jira/browse/WELDX-70
>             Project: Weld Extensions
>          Issue Type: Task
>          Components: Archetypes
>    Affects Versions: Archetypes 1.0.0.Beta1
>            Reporter: Steven Boscarine
>            Assignee: Martin Gencur
>            Priority: Optional
>
> This may be a difficult and funky task.  I haven't been able to find examples of people automating maven calls.  This may be a very pioneering task if done in Java.  I do it presently with a shell script.  
> Here's what needs to happen:
> An archetype needs to be built from source.  (mvn clean install)
> A project needs to be created from the archetype. (mvn archetype:generate -DartifactId=myproject)
> The project's tests need to be run.  (mvn clean test -f myproject/pom.xml)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the weld-issues mailing list