Skip to content

Commit

Permalink
issues/189: poc for exclusions
Browse files Browse the repository at this point in the history
  • Loading branch information
fmck3516 committed Nov 26, 2024
1 parent fa6e9bf commit 16f389c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ public void apply(Project project) {
testTask.finalizedBy("skippyAnalyze");
testTask.doFirst(task -> {
projectSettings.ifBuildSupportsSkippy(skippyBuildApi -> {
for (var test : skippyBuildApi.getExclusions()) {
var exclusions = skippyBuildApi.getExclusions();
testTask.getLogger().lifecycle("Exclusions that will be added: %s".formatted(exclusions.size()));
for (var test : exclusions) {
var exclusion = "**/%s.*".formatted(test.getClassName().replaceAll("\\.", "/"));
testTask.getLogger().lifecycle("Adding exclusion %s".formatted(exclusion));
testTask.exclude(exclusion);
Expand Down

0 comments on commit 16f389c

Please sign in to comment.