Closed lydell closed 2 years ago
(for myself) have a look at that stdout/stderr inconsistency with the normal command. I had thought the json output was in stdout as for the normal command and so it didn't matter what was printed to stderr.
elm-test make --report json
seems to write the JSON to stderr. I think it’s because elm make --report json
prints the JSON to stderr.
@lydell I've introduced and explained some stdio behavior changes in the following PR. Please let me know if that makes sense to you. https://github.com/mpizenberg/elm-test-rs/pull/109
Cool! I will take a closer look later, but a quick thought is to mention in the readme the intentional deviation from elm-test make --report json
(prints on stdout instead of stderr).
This behavior difference is now documented in the readme. Thanks for the feedback. I'm closing this but we can re-open if needed at some point.
elm-test-rs make --report json
seems to add “Error: Compilation failed” right after the JSON, causing JSON parse errors when I try to read it viaJSON.parse(stderr)
.