You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will mimic the structure of the jest output as much as possible. The file will be such that, if test_args are provided (#46), then the top "total" will be replaced with the name of the test set.
I'm torn on whether this belongs in LocalCoverage.jl or Coverage.jl. On the one hand (from a familiar thread):
using Coverage
coverage =process_folder()
LCOV.writefile("lcov.info", coverage)
and note the other possible values of that jest argument are ["clover", "json", "lcov", "text"], so you could argue that lcov and json should be an alternative output option of Coverage.jl.
But on the other hand, using jest --coverageReporters="text-summary" produces:
Personally, I think it should go here since the necessary components are already conveniently located and need only be put in a dict to make for easy json output.
For background, I'm interested in storing the json during CI, then reading it during subsequent runs in order to provide a pass/fail based on coverage increase/decrease, similar to what you get out of the box with codecov.io. (It's either this or cough up the $500/yr for codecov pro!)
Happy to PR.
The text was updated successfully, but these errors were encountered:
(I looked a bit and couldn't find anything that does this. Please let me know if this already exists somewhere.)
I'd like to output a coverage summary in JSON similar to
jest --coverage --coverageReporters="json-summary"
(relevant docs) to produceThis will mimic the structure of the
jest
output as much as possible. The file will be such that, if test_args are provided (#46), then the top"total"
will be replaced with the name of the test set.I'm torn on whether this belongs in LocalCoverage.jl or Coverage.jl. On the one hand (from a familiar thread):
and note the other possible values of that
jest
argument are["clover", "json", "lcov", "text"]
, so you could argue that lcov and json should be an alternative output option of Coverage.jl.But on the other hand, using
jest --coverageReporters="text-summary"
produces:which is very similar to the text summary output of LocalCoverage.jl:
Personally, I think it should go here since the necessary components are already conveniently located and need only be put in a dict to make for easy json output.
For background, I'm interested in storing the json during CI, then reading it during subsequent runs in order to provide a pass/fail based on coverage increase/decrease, similar to what you get out of the box with codecov.io. (It's either this or cough up the $500/yr for codecov pro!)
Happy to PR.
The text was updated successfully, but these errors were encountered: