Skip to content

Instantly share code, notes, and snippets.

@aslakhellesoy
Created November 14, 2012 16:01
Show Gist options
  • Save aslakhellesoy/4072962 to your computer and use it in GitHub Desktop.
Save aslakhellesoy/4072962 to your computer and use it in GitHub Desktop.
How to embed text into your cucumber-jvm report with Java
import cucumber.api.Scenario;
public class MyStepdefs {
private Scenario scenario;
@Before
public void before(Scenario scenario) {
this.scenario = scenario;
}
@Given("^I have (\\d+) cukes in my belly$")
public void cukes_in_my_belly(int cukes) {
scenario.write("This goes into the report(s)\n");
}
}
@sgrillon14
Copy link

is it possible write a text in report with custom css?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment