When running with --test-randomize-ordering-seed, logging of seed is not in JSON when reporter is a JSON reporter. #1545
Labels
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
When running the test executable with
-r json
and--test-randomize-ordering-seed=random
together, the test outputs the line "Shuffling test order with --test-randomize-ordering-seed=2995889359" at the start of the test, instead of printing valid JSON. This can cause issues if the output is being captured in order to parse it by machine.Suggest outputting a JSON dict that includes the seed if using the json reporter, or converting the message to print to stderr instead of stdout, or just not printing the seed when using a JSON reporter, and adding it to the metadata for each suite.
/cc @jakemac53 @natebosch
The text was updated successfully, but these errors were encountered: