New: [rhinstaller/anaconda/pulls/397 master] Point coverage.py to the full path of pyanaconda/

atodorov installerbot-noreply at redhat.com
Thu Oct 8 14:48:14 UTC 2015


There's a problem with how coverage.py discovers all files in pyanaconda. When the source parameter is specified as module name the coverage data includes 109 files. If the source parameter is specified as full directory name then the data files contain 124 files. This is the similar to what `make ci` coverage reports produce.  Unifying those gives more accurate data and makes it easier to compare test executions in the future. 

Note: I had to use the getsitepackages() gimmick (proposed by dlehman) because I didn't wan't to import pyanaconda before coverage was started. 
-- 
To view this pull request on github, visit https://github.com/rhinstaller/anaconda/pull/397


More information about the anaconda-patches mailing list