[jboss-as7-dev] Running AS7 tests in eclipse?
Jeff Mesnil
jmesnil at redhat.com
Tue Apr 3 11:03:24 EDT 2012
On 04/03/2012 03:35 PM, Kabir Khan wrote:
>
> On 3 Apr 2012, at 14:34, Kabir Khan wrote:
>
>> I've not tried the individual tests for a long time, but I used to have to put the system properties expected into the arguments. I think -Djboss.dist becomes jbossHome, and you also need to set -Dava.util.logging.manager=org.jboss.logmanager.LogManager.
>>
>> An easier way might be to start the test from the command line using mvn test -Dmaven.surefire.debug=true and connecting the debugger on port 5005.
> mvn clean install -Dmaven.surefire.debug=true -Dtest=MyTest
> Note that ^ runs it against the full profile
Thanks Kabir, you put me on right track.
I finally managed to run a single test from the test suite
(MessagingTestCase) by tweaking a few things:
* I added the logging manager to the VM args of Eclipse run
configuration to display logs:
-Djava.util.logging.manager=org.jboss.logmanager.LogManager
* I added /testsuite/integration/smokesrc/test/config/arq/ dir to
Eclipse build path so that arquillian.xml was in its classpath
* I modified arquillian.xml "jbossHome" property to point to
$HOME/.../jboss-as/build/target/jboss-as-7.1.2.Final-SNAPSHOT/ because
it was not finding it at ${basedir}/target/jbossas
With these changes, I was able to run a single test from Eclipse.
jeff
--
Jeff Mesnil
JBoss, a division of Red Hat
http://jmesnil.net/
More information about the jboss-as7-dev
mailing list