[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-2371) Integration testing Seam components with Maven

Siarhei Dudzin (JIRA) jira-events at lists.jboss.org
Thu Apr 24 17:29:08 EDT 2008


    [ http://jira.jboss.com/jira/browse/JBSEAM-2371?page=comments#action_12410610 ] 
            
Siarhei Dudzin commented on JBSEAM-2371:
----------------------------------------

Actually, the problem with jboss embedded was solved back in February by doballve (http://www.jboss.com/index.html?module=bb&op=viewtopic&t=126786&postdays=0&postorder=asc&start=20). After that the solution is refactored a bit to get rid of ant scripts.

When I began working on the problem I also started with running tests exclusively from ejb module. After digging some Seam code it appeared it requires xml descriptors from WEB-INF, so the choice was either to duplicate stuff from web module (and being able to run all tests from ejb module) or to move integration and component (but not necessarily unit) tests to web module.

Since I really prefer DRY I've chosen the latter. As a consequence there is a difficulty to use cobertura plugin (because the integration tests run in different phase and even in different module) and there is problem with JBoss tools (hopefully it's small).
It might seem your proposal wont necessarily have those problems at a cost of duplicating some xml descriptors (components.xml isn't that big of a deal but navigation might be, especially fine grained one)

But the more options/version we have before the real work starts the better :)

I might actually use your solution to be able to use integration testing that doesn't involve navigation or security without all the drawbacks, so thanks for that! :)

I am also quite familiar with the maven-eclipse-plugin, did you try JBoss Tools + WTP 2.0 (I mean exploded deployment here) with your solution (I expect it should work)?

> Integration testing Seam components with Maven
> ----------------------------------------------
>
>                 Key: JBSEAM-2371
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-2371
>             Project: Seam
>          Issue Type: Task
>          Components: Build, Test Harness
>    Affects Versions: 2.0.0.GA
>         Environment: Maven 2.0.7
>            Reporter: Siarhei Dudzin
>            Priority: Critical
>             Fix For: 2.1.0.BETA1
>
>         Attachments: maven-seam-microcontainer-testng-template.zip, testproject-master-JBSEAM-2371.zip
>
>
> Various users have reported integration testing with Seam is not working in 'Mavenized' projects.

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

        



More information about the seam-issues mailing list