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

boli
19.25.2006 a33ea39bc3b76becbb7d4cab9d5347197d1c2f9a
refs
author boli <boli@localhost>
Tuesday, September 19, 2006 23:25 +0200
committer boli <boli@localhost>
Tuesday, September 19, 2006 23:25 +0200
commita33ea39bc3b76becbb7d4cab9d5347197d1c2f9a
tree af76eacca7ddb82d3fd27b6d452bbc206ed1e06a tree | zip | gz
parent e7cc3c5856db215cdcb2d9b145bfe2ce3dfcc5b8 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
opendj-sdk/opends/build-tools/src/org/opends/build/tools/PrepTestNG.java 135 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/build.xml 96 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/ext/build-tools.jar diff | view | raw | blame | history
opendj-sdk/opends/ext/testng/testng.xml 1 ●●●● diff | view | raw | blame | history