-
1. Re: Trouble Getting Started
ssilvert Feb 14, 2008 3:52 PM (in response to jasondlee)I noticed a couple of things:
1) You are using 1.0-SNAPSHOT for your JSFUnit version. The first beta is out, so you can use 1.0-beta-1 or you can get the latest source and use 1.0-beta-2-SNAPSHOT.
2) You are using JUnit 4.x. This will only work with JUnit 3.x because of some current limitations in Cactus.
Stan -
2. Re: Trouble Getting Started
jasondlee Feb 14, 2008 4:13 PM (in response to jasondlee)Good catch. Thanks. I corrected those two versions, but I'm getting the same outcome. If surefire is set to skip tests, nothing happens. If it is not, I get connection refused. Is there anything I need to do on the cactus or wagon side of things that I haven't done?
-
3. Re: Trouble Getting Started
ssilvert Feb 18, 2008 9:57 PM (in response to jasondlee)Sorry I'm late getting back to you. I've been at JBoss World and then on a short vacation.
I assume you looked at this wiki?
http://wiki.jboss.org/wiki/JSFUnitDocumentation
And you saw "Using JSFUnit with Maven"?
I can't see your POM any more, but I think I remember that you did set the cactus.contextURL property like this?<systemProperties> <property> <name>cactus.contextURL</name> <value>http://localhost:8080/${artifactId}</value> </property> </systemProperties>
So if you might try hard-coding that property instead of using ${artifactId}. For more on the cactus.contextURL property see http://jakarta.apache.org/cactus/integration/manual/howto_config.html
Stan -
4. Re: Trouble Getting Started
ssilvert Feb 18, 2008 10:26 PM (in response to jasondlee)Also, if you are just issuing "mvn test" then your build won't make it to the "integration-test" phase, so the JSFUnit tests won't run. At the least you should run "mvn post-integration-test".
Stan -
5. Re: Trouble Getting Started
jasondlee Feb 19, 2008 9:40 AM (in response to jasondlee)"stan.silvert@jboss.com" wrote:
Also, if you are just issuing "mvn test" then your build won't make it to the "integration-test" phase, so the JSFUnit tests won't run. At the least you should run "mvn post-integration-test".
Stan
Thanks. I stumbled across that somewhere. If I weren't still so new to maven, that might have been obvious. :) I'm now hitting the same issues with Seam that others appear to be having. I've got the JSFUnit source checked out, so I'm going to try a local build and see if SVN has some helpful bits for me :) -
6. Re: Trouble Getting Started
ssilvert Feb 19, 2008 9:46 AM (in response to jasondlee)The latest code in Subversion does fix the problems with conversation scope. You will depend on the new JSFUnit/Seam jar and use org.jboss.jsfunit.seam.SeamClient instead of JSFClientSession. SeamClient extends JSFClientSession.
For now, you will also see a stack trace from Seam that does not have any effect on your tests. The Seam team is looking into that problem now.
Stan