Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-7537

allow find grained testing with server start/stop

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • 6.0.0.M2
    • 6.0.0.M1
    • Test Suite
    • None
    • 0
    • 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)

      Attachments

        Activity

          People

            rhn-engineering-jhallida Jonathan Halliday
            rhn-engineering-jhallida Jonathan Halliday
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: