2 Replies Latest reply on Dec 19, 2006 9:53 AM by adrian.brock

    Running all tests at once

    alesj

      Is there a way to run all tests from all MC modules/projects at once?

      But reports would still go into separate dir - [module]/output/reports, right?
      What about a single file info with which tests failed?

        • 1. Re: Running all tests at once

          Not really because the tests are defined in build-test.xml not the build.xml

          If they were in build.xml you could use (from the main build project)

          [ejort@warjort build]$ ./build.sh _buildmagic:modules:tests


          Maybe you could add a tests target to each build.xml that invokes the correspondiing build-test.xml

          Of course Maven would let you do this.

          I use a script (which is a bit out-of-date now :-)

          #!/bin/sh
          
          cd ../container
          ./build.sh
          ./build.sh -f build-test.xml tests
          cd -
          cd ../dependency
          ./build.sh
          ./build.sh -f build-test.xml tests
          cd -
          cd ../kernel
          ./build.sh
          ./build.sh -f build-test.xml tests
          cd -
          cd ../aop-mc-int
          ./build.sh
          ./build.sh -f build-test.xml tests
          cd -
          


          • 2. Re: Running all tests at once

             

            "alesj" wrote:

            What about a single file info with which tests failed?


            That just involves using ant's junitreport and style (xslt) tasks
            see the bottom of jboss-head/testsuite/build.xml
            for an example.

            The cruisecontrol build already has this anyway (somewhere)
            http://cruisecontrol.jboss.com/cc/artifacts/microcontainer-head-testsuite/20061219054054/results/index.html