mreynolds / 389-ds-base

Forked from 389-ds-base 6 years ago
Clone

d5c5131 Ticket 48407 - Add test coverage module for lib389 repo

1 file Authored by spichugi 6 years ago, Committed by William Brown 6 years ago,
    Ticket 48407 - Add test coverage module for lib389 repo
    
    Bug Description: We need some module that will show us how much lines of
    code is covered by tests.
    
    Fix Description: We can use pytest-cov plugin for this.
    
    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.
    Patch creates .coveragerc config file to omit this directory.
    
    https://fedorahosted.org/389/ticket/48407
    
    Review by: wibrown (Thanks!)