X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2FREADME;h=e49534a1bf48017b48eaf8a93f6b7c226dad8c98;hb=e146d1772b57f595cd7c6537045eedbb82b98e37;hp=b906ceb4766a283ae6b22bd037f9e1619feb12d1;hpb=849865733fc667789d0e57edd1ac2ee1f38499a3;p=git.git diff --git a/t/README b/t/README index b906ceb47..e49534a1b 100644 --- a/t/README +++ b/t/README @@ -259,15 +259,27 @@ Do: test ... That way all of the commands in your tests will succeed or fail. If - you must ignore the return value of something (e.g. the return - value of export is unportable) it's best to indicate so explicitly - with a semicolon: + you must ignore the return value of something (e.g., the return + after unsetting a variable that was already unset is unportable) it's + best to indicate so explicitly with a semicolon: - export HLAGH; + unset HLAGH; git merge hla && git push gh && test ... + - Check the test coverage for your tests. See the "Test coverage" + below. + + Don't blindly follow test coverage metrics, they're a good way to + spot if you've missed something. If a new function you added + doesn't have any coverage you're probably doing something wrong, + but having 100% coverage doesn't necessarily mean that you tested + everything. + + Tests that are likely to smoke out future regressions are better + than tests that just inflate the coverage metrics. + Don't: - exit() within a