Skip to content

Is it possible to output both Json and Junit  #285

@ecaponi3

Description

@ecaponi3

Looking into ways to use the built in writer's to produce both a json test report as well as a junit xml report from the same run.

Here is an example of how we are using .tee to produce our json file currently:

let world = world.with_writer(cucumber::writer::Basic::stdout() .summarized() .tee(cucumber::writer::Json::new(driver.raw_json_file()?)), );
world.run(products_dir).await;

Is it possible to call on tee again to produce the same report but in xml? Or is there another built in method that would be useful for this?

Metadata

Metadata

Assignees

Labels

k::apiRelated to API (application interface)k::integrationRelated to integration with third-party toolsmovedMoved to discussions or anywhere elsequestionFurther information is requestedwontfixThis will not be worked on

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions