Details
-
Feature Request
-
Resolution: Done
-
Major
-
6.0.0.M1
-
None
-
0
-
0%
Description
I wish to be able to configure hudson runs that smoke test using a given group or groups of tests. When testing interactively, the process is:
(start desired server in another shell)
cd testsuite; ./build.sh -Dtest=foo test
(stop server)
However, I'd like to be able to do this as a single command, so it can be easily automated in hudson runs.
Suggested approach:
testsuite/build.xml:
<target name="test-with-server" if="server" depends="init"
description="Execute a singe test with specified server config startup/shutdown">
<server:start name="${server}"/>
<antcall target="test" inheritRefs="true"/>
<server:stop name="${server}"/>
</target>
and likewise for one-test.
Whilst this change is minimal, making it work would also require fixing server:start so it does not incorrectly barf when passed an arg of "default":
java.lang.IllegalArgumentException: There is no server named: default
at org.jboss.jbossas.servermanager.ServerManager.getServer(ServerManager.java:124)
at org.jboss.jbossas.servermanager.ServerManager.startServer(ServerManager.java:163)
at org.jboss.ant.taskdefs.server.StartServerTask.startServer(StartServerTask.java:72)