nw-builder icon indicating copy to clipboard operation
nw-builder copied to clipboard

PR test coverage requirement

Open zkrige opened this issue 1 year ago • 5 comments

Any new PR's should have minimum test coverage requirements of 80% - but only for the changes.

so if theres 20 lines changed, 16 of them should be covered by tests

zkrige avatar Feb 22 '24 04:02 zkrige

What's weird is that in both #1035 and #1040, the symlinks test passed in GitHub CI but failed on your local machine (or was it CircleCI?).

ayushmanchhabra avatar Feb 22 '24 05:02 ayushmanchhabra

that is weird. it was failing on my local Mac AND on circle build. When I get a chance I'll review those tests to check if they're testing the right thing

zkrige avatar Feb 22 '24 05:02 zkrige

ah - the decompress.test.js doesnt actually test if symlinks exist after extracting. it just runs runs a decompress and then continues. the macOS one should ALSO check that symlinks exist once decompress has finished

zkrige avatar Feb 22 '24 05:02 zkrige

Any new PR's should have minimum test coverage requirements of 80% - but only for the changes.

https://coveralls.io/ ?

ayushmanchhabra avatar Feb 22 '24 18:02 ayushmanchhabra

I think this is more relevant https://github.com/Bachmann1234/diff_cover

zkrige avatar Feb 24 '24 10:02 zkrige

~~This has been resolved in #1120. I forgot to link the issue in the PR.~~

ayushmanchhabra avatar Jun 22 '24 13:06 ayushmanchhabra

Accidently closed

ayushmanchhabra avatar Jun 22 '24 15:06 ayushmanchhabra