Description
make coverage
has a number of side effects including downloading tools to generate the coverage and overwriting the lib/
directory; make coverage-clean
allows the user to clean these up.
While working on #15190 I suggested passing an option to allow make coverage
and make coverage-clean
to be done in one run but leaving the coverage/
dir intact (and adding it to .gitignore
. @TimothyGu agreed this could be good and welcomed a PR for it (and added the correct syntax for the command line option).
I think there are a couple of options for how this could be done (plus leave as is) that would be great to get feedback on. I think the options are:
- Pass
CLEAN=true
tomake coverage
that runscoverage-clean
aftercoverage-test
- Run
coverage-clean
aftercoverage-test
as default and allow the user to passNOCLEAN=true
orCLEAN=false
if they do not want the side-effects ofcoverage
removed. - Leave as-is and require the user to run
coverage-clean
aftercoverage
Both options 1 and 2 would leave the coverage/
dir intact (so not rm -r
that directory during coverage-clean
as is done currently), and add that dir to .gitignore
. I'm happy for the coverage/
dir to remain intact because I might want to keep referencing those files (as long as they are ignored by git) but do not want all the other side-effects showing up each time I run git status
.
Any feedback is really appreciated.