turf icon indicating copy to clipboard operation
turf copied to clipboard

Code Coverage for Tests

Open JamesLMilner opened this issue 3 years ago • 4 comments

This adds nyc to the along module in order to see how it might work for getting information on code coverage. This could eventually close #2138 if we're happy with the approach.

Edit: This started as a proof of concept and I transitioned it to a full PR for adding Code Coverage to all packages

JamesLMilner avatar Jul 25 '21 18:07 JamesLMilner

What is the intent with how we'd apply this @JamesLMilner ? Is there an automated test that checks if coverage is being improved or if it declines? Or is there are report that we'll be able to see via the checks above?

rowanwins avatar Jul 26 '21 04:07 rowanwins

@rowanwins the aim here is that we firstly want to be able to see code coverage on push. Ideally we also want to be able to determine how it's changed between master. I'm working on adding another GitHub Action that will run coverage on the current branch and on master so you can compare the difference. I am looking to see if there's a way to write a script that will do a diff on the outputs somehow.

JamesLMilner avatar Aug 01 '21 20:08 JamesLMilner

I think this should be fixed up now

JamesLMilner avatar Aug 23 '21 23:08 JamesLMilner