[Python-Dev] We now have C code coverage!

Ivan Pozdeev vano at mail.mipt.ru
Sat Jun 23 14:18:05 EDT 2018

On 23.06.2018 13:52, Paul Moore wrote:
> On 22 June 2018 at 23:21, Brett Cannon <brett at python.org> wrote:
>> Thanks to a PR from Ammar Askar we now run Python under lcov as part of the
>> code coverage build. And thanks to codecov.io automatically merging code
>> coverage reports we get a complete report of our coverage (the first results
>> of which can now be seen at https://codecov.io/gh/python/cpython).
>> And funny enough the coverage average changed less than 1%. :)
> Nice!
> One thing I noticed, code that's Windows-specific isn't covered. I
> assume that's because the coverage reports are based on runs of the
> test suite on Linux. Is it possible to merge in data from the Windows
> test runs? If not, what's the best way to address this? Should we be
> mocking things to attempt to test Windows-specific code even on Linux,
> or should we simply accept that we're not going to achieve 100%
> coverage and not worry about it?

AFAICS lcov is based on gcov which is GCC-specific.

> Paul
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> https://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: https://mail.python.org/mailman/options/python-dev/vano%40mail.mipt.ru


More information about the Python-Dev mailing list