mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

boli
19.25.2006 9db56eeb258c99afe8f1d67af66b57e7966811c7
refs
author boli <boli@localhost>
Tuesday, September 19, 2006 23:25 +0200
committer boli <boli@localhost>
Tuesday, September 19, 2006 23:25 +0200
commit9db56eeb258c99afe8f1d67af66b57e7966811c7
tree c4856c312d0041cc67ba248e9d6d730c8945e9ca tree | zip | gz
parent f678d18a949257208370a3467596058082cb0ffd view | diff
This adds the ability to exclude certain slow tests from running in the
default test ant target, I have added a "slow" test group to testng. To
use it, just put something like "@Test(groups = { "slow" })" before your
test case method.

This is implemented by a modified testng.xml file which is modified by a
custom ant task called preptestng. It basically takes a
group include/exclude string like "exclude=slow,include=fast" from ant
and insert the correct tags into a copy of the testng.xml file.

A new resource directory is now created before running tests to hold the
modified testng.xml. it is located at build/unit-tests/resource. The
preptestng task will copy the master testng.xml file from
ext/testng/testng.xml to the new resource directory and add the
appropreate group tags based on parameters from ant.

This also creates a build-tools top level directory to hold this tool and any future build tools. A new ant target called "buildtools" is also added to rebuild the tools and make the build-tools.jar file in ext.

The slow tests are only ran with the all, testall, or
testallwithcoverage targets.
2 files added
2 files modified
232 ■■■■■ changed files
opends/build-tools/src/org/opends/build/tools/PrepTestNG.java 135 ●●●●● diff | view | raw | blame | history
opends/build.xml 96 ●●●● diff | view | raw | blame | history
opends/ext/build-tools.jar diff | view | raw | blame | history
opends/ext/testng/testng.xml 1 ●●●● diff | view | raw | blame | history