Skip to content

Allow multiple reporters with multiple output files #1712

@horenmar

Description

@horenmar

Description

There have been requests for specifying multiple reporters to be used for the same test run. This was implemented for a while, but it ran into trouble caused by the fact that there was no way to give them different output files/streams for them to write to. If we reintroduce this possibility, we also need to decide on a syntax that allows different reporters to write to different files/streams.

Additional context
Possible syntaxes:

  • -r takes a list, -o takes a list, the size of list in -r must be at most 1 longer than the one in -o. Reporters are then given the targets from -o in the same order they are specified.
    Examples: -r junit xml -o junit.out -> junit reporter writes to the file junit.out, xml reporter writes to stdout.
  • -r takes a list of reporters, where the name can be followed by a colon and the name of the output file, e.g. -r junit:junit.out would say that the junit reporter should write its output to junit.out. Stdout would then be specified as either -, or without any followup after the name.

We also need to decide what to do if multiple reporters would be writing to stdout -- ignore it? Warn the user? Error out?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions