Test coverage plugin for pytest

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi team,

we need some module that will show us how much lines of code
is covered by tests. We can use pytest-cov plugin for this.

For starters, it works only on lib389 repo. But we need to figure out
the way to measure a coverage for our 389-ds the C code base too.

To get it work we need:
1) install python-pytest-cov package from Fedora or EPEL repos
or
1) install pytest-cov from pip
2) add "--cov-config .coveragerc --cov=lib389" to py.test command to
execute tests with coverage plugin

We shouldn't measure coverage for lib389/tests directory while executing
tests.
I've already merged the patch that creates .coveragerc config file
to omit this directory.

https://fedorahosted.org/389/ticket/48407

Also, here you can find an example of pytest-cov output.
https://fedorahosted.org/389/ticket/48407#comment:5

Kind regards,
Simon
--
389-devel mailing list
389-devel@%(host_name)s
http://lists.fedoraproject.org/admin/lists/389-devel@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Directory Announce]     [Fedora Users]     [Older Fedora Users Mail]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Review]     [Fedora Art]     [Fedora Music]     [Fedora Packaging]     [CentOS]     [Fedora SELinux]     [Big List of Linux Books]     [KDE Users]     [Fedora Art]     [Fedora Docs]

  Powered by Linux