Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ public class AllureJunitPlatform implements TestExecutionListener {
private static final boolean HAS_SPOCK2_IN_CLASSPATH = isClassAvailableOnClasspath("io.qameta.allure.spock2.AllureSpock2");

private static final boolean HAS_CUCUMBERJVM7_IN_CLASSPATH = isClassAvailableOnClasspath("io.qameta.allure.cucumber7jvm.AllureCucumber7Jvm");
private static final boolean HAS_CUCUMBERJVM8_IN_CLASSPATH = isClassAvailableOnClasspath("io.qameta.allure.cucumber8jvm.AllureCucumber8Jvm");

private static final boolean HAS_KARATE_IN_CLASSPATH = isClassAvailableOnClasspath("io.qameta.allure.karate.AllureKarate");

Expand Down Expand Up @@ -228,7 +229,7 @@ private boolean shouldSkipReportingFor(final TestIdentifier testIdentifier) {
final String engine = maybeEngine.get();

return HAS_SPOCK2_IN_CLASSPATH && ENGINE_SPOCK2.equals(engine)
|| HAS_CUCUMBERJVM7_IN_CLASSPATH && ENGINE_CUCUMBER.equals(engine)
|| (HAS_CUCUMBERJVM7_IN_CLASSPATH || HAS_CUCUMBERJVM8_IN_CLASSPATH) && ENGINE_CUCUMBER.equals(engine)
|| HAS_KARATE_IN_CLASSPATH && isKarateTest(testIdentifier);
}

Expand Down
Loading