Skip to content

Commit

Permalink
Remove default summary and snippets when used in test framework
Browse files Browse the repository at this point in the history
snippets are printed as part of the exception
  • Loading branch information
mpkorstanje committed Apr 30, 2020
1 parent fe3c4c7 commit 08cc8dd
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import io.cucumber.testng.CucumberOptions;
import org.testng.annotations.DataProvider;

@CucumberOptions(plugin = {"summary","message:target/cucumber-report.ndjson"})
@CucumberOptions(plugin = {"html:target/results.html", "message:target/results.ndjson"})
public class RunCucumberTest extends AbstractTestNGCucumberTests {

@DataProvider(parallel = true)
Expand Down
1 change: 0 additions & 1 deletion junit/src/main/java/io/cucumber/junit/Cucumber.java
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ public Cucumber(Class<?> clazz) throws InitializationError {

RuntimeOptions runtimeOptions = new CucumberPropertiesParser()
.parse(CucumberProperties.fromSystemProperties())
.addDefaultSummaryPrinterIfAbsent()
.build(environmentOptions);

// Next parse the junit options
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ public TestNGCucumberRunner(Class<?> clazz) {

RuntimeOptions runtimeOptions = new CucumberPropertiesParser()
.parse(CucumberProperties.fromSystemProperties())
.addDefaultSummaryPrinterIfAbsent()
.build(environmentOptions);

EventBus bus = new TimeServiceEventBus(Clock.systemUTC(), UUID::randomUUID);
Expand Down

0 comments on commit 08cc8dd

Please sign in to comment.