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
Instead, I've added a unit test that only passes if all assert_ functions have at least 5 unit tests (expect statements).
Caveats:
assert_create and assert_create_chain are not included, but already quite well covered
detection of unit tests is a little rough. It only detects them if the expect statement and assert_ function are in the same line
Now the only way to pass unit tests is to have well tested code. Unfortunately its currently based on # of unit tests rather than code coverage.
Longer term, if covr or other solutions become able to calculate coverage of functions created upon loading of a package, that would supplement this solution nicely
see #26 for context.
We should build
expect_
statements that test each assertion)Some potential options for badges here:
basically we just need to produce a json file somewhere in this repo that we could point to.
https://css-tricks.com/adding-custom-github-badges-to-your-repo/
The text was updated successfully, but these errors were encountered: