Description of problem: Currently, the tests for a seam-gen generated project are not automatically generated correctly and not runnable. - The SEAM_HOME/seam-gen/build.xml "test" target is commented out, - the PROJECT/build.xml "test" target is immediately failed, - the createDeployment methods in FormTest and ActionTest are commented out. Version-Release number of selected component (if applicable): WFK 2.1.0.CR2 jboss-seam-2.3.0.Final-redhat-1 How reproducible: Generate a project with seam-gen and try to run "seam test". Steps to Reproduce: 1. seam create-project 2. seam test Actual results: BUILD FAILED Target "test" does not exist in the project "seam-gen". Expected results: The tests should be executed.
it is known issue
Move to WFK 2.2 and release note for WFK 2.1 per 19-Nov triage call.
*** Bug 877055 has been marked as a duplicate of this bug. ***
Vasek is backporting the https://issues.jboss.org/browse/JBSEAM-5034
Done.
This is still problem. Test generated for "Seam Form" or "Seam Action" still contains errors. At first there are IMO variables instead of its values e.g.: .addAsLibraries(@libraryList@) String WEBAPP_SRC = "@workspaceHome@/@projectName@/test-build"; String PROJECT_HOME = "@workspaceHome@/@projectName@/"; Second problem is that when you generate these Forms or Actions for WAR project, there is no secondary ${name}Bean class. I mean that when I create FooForm.java in WAR project, there is no FooFormBean.java in this case. This causes errors too.
Well ok my previous comment refers to JBDS behaviour so that's for another JBDS issue. So tests are generated ok by using seam-gen command, but the next problem is that they can't be run on EAP 6.0.1 (7.1.3.Final) because of older arquillian container version.
ok, we can update the version from our WFK BOM.
Here is the main issue which blocks the testing from user POV
after looking into our WFK BOM *-with-tools, there is already a workaround arquillian container dependencies, but as seam-gen uses ant and downloads arquillian libs from ant script, I need to add this workaround into get-arquillian-libs.xml script too.
Fixed: https://source.jboss.org/changelog/Seam?cs=15437
Verified on WFK 2.2.0.ER2 filed other issues with seam-gen test: https://bugzilla.redhat.com/show_bug.cgi?id=922051 Seam2.3 seam-gen generated JUnitSeamTest deployment should use org.jboss.seam.mock.MockSeamListener instead of the SeamListener. https://bugzilla.redhat.com/show_bug.cgi?id=922049 Seam2.3 seam-gen resources-test/arquillian.xml not used
Doc Text updated.
Closed as CURRENTRELEASE, part of WFK 2.2.0 distributables.