Courgette-jvm to include project name, version and environment in the reports?

545 Views Asked by At

I'm using courgette-jvm to run tests in parallel but in the reports I want to include project name, version and environmental details...

Is there any possible way to include these in courgette/cucumber reports.

Any help much appreciated.

Thanks

1

There are 1 best solutions below

3
Prashant Ramcharan On BEST ANSWER

You can provide these details by hard coding it into your Courgette runner or by passing it via system properties.

Update your Courgette runner to include:

@RunWith(Courgette.class)
@CourgetteOptions(
  ...
  reportTitle = "Your project name"
  environmentInfo = "browser=chrome; git_branch=master"
)

or pass it via system properties:

-Dcourgette.reportTitle="Your project name" 

-Dcourgette.environmentInfo="browser=chrome; git_branch=master"