Skip to content

Commit

Permalink
Ant can now ignore unit tests matching a pattern
Browse files Browse the repository at this point in the history
To temporarily ignore unit tests matching a specific pattern,
run the build scripts like this:

$ JUNIT_EXCLUDE_TESTS='**/pqc/**' sh build1-8+ test

This example ignores the pqc unit tests, using Ant's ** wildcard
to match multiple paths.

As the changes were made to the core bc+-build.xml Ant script, they
should work with any of the build1-* shell scripts.
  • Loading branch information
jwcranford committed Oct 21, 2022
1 parent 1d19241 commit be684fb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ant/bc+-build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -986,6 +986,7 @@
<batchtest todir="${artifacts.reports.xml.dir}" unless="testcase">
<fileset dir="${test.target.src.dir}">
<include name="**/AllTests.java" />
<exclude name="${env.JUNIT_EXCLUDE_TESTS}" if="env.JUNIT_EXCLUDE_TESTS" />
</fileset>
</batchtest>
</junit>
Expand Down

0 comments on commit be684fb

Please sign in to comment.