I am working on an enormous django project that takes hours to generate a coverage report (using the coverage.py library). Instead, I want travis to generate a report on only the functions that have been changed in my PR.
My current idea is to write something in .travis.yml
to run a git diff
between my branch and the branch it is being PR'd against, getting the function names from that output, and then running testing with coverage on those functions.
This seems like a problem that other people must have run into, is there some cleaner way of doing this?