From 50eaa8912daebe1ca9dddfe8b15073b3e8b40f3e Mon Sep 17 00:00:00 2001 From: Roman Torsten Date: Wed, 16 Dec 2020 19:16:44 +0300 Subject: [PATCH] Fix ignoring test logic. --- fork-runner/src/main/java/com/shazam/fork/ForkRunner.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fork-runner/src/main/java/com/shazam/fork/ForkRunner.java b/fork-runner/src/main/java/com/shazam/fork/ForkRunner.java index ac7b3f21..076ab0ff 100755 --- a/fork-runner/src/main/java/com/shazam/fork/ForkRunner.java +++ b/fork-runner/src/main/java/com/shazam/fork/ForkRunner.java @@ -74,7 +74,8 @@ public boolean run() { Collection testCases = testClassLoader.loadTestSuite(); summaryGeneratorHook.registerHook(pools, testCases); - executeTests(poolExecutor, pools, testCases); + executeTests(poolExecutor, pools, testCases + .stream().filter(it -> !it.isIgnored()).collect(toList())); AggregatedTestResult aggregatedTestResult = aggregator.aggregateTestResults(pools, testCases); if (!aggregatedTestResult.getFatalCrashedTests().isEmpty()) {