simplecov-html, the default simplecov output formatter, dumps text output into stderr even when rspec is asked for --format json, causing the output stream to be unparseable. While this is truly an issue with simplecov (and I've started a conversation here), we can work around it from our end because the text being written into the output stream is very limited and specific.
So - as part of parsing the output of rspec, look for non-json simplecov output strings and strip them from the text before json-parsing.
You can actually produce this error on this repository in main by running SIMPLECOV=true bin/qq, which totally passes in this branch ;-)
simplecov-html
, the default simplecov output formatter, dumps text output into stderr even when rspec is asked for--format json
, causing the output stream to be unparseable. While this is truly an issue withsimplecov
(and I've started a conversation here), we can work around it from our end because the text being written into the output stream is very limited and specific.So - as part of parsing the output of rspec, look for non-json simplecov output strings and strip them from the text before json-parsing.
You can actually produce this error on this repository in
main
by runningSIMPLECOV=true bin/qq
, which totally passes in this branch ;-)