Completed
Pull Request — master (#17)
by Amresh
01:22
created

execute_coverage()   A

Complexity

Conditions 1

Size

Total Lines 10
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 10
rs 10
c 0
b 0
f 0
cc 1
nop 1
1
import subprocess
2
from logger.logger import logger
3
4
5
def execute_coverage(report_path):
6
    """
7
    Function with a side-effect to create
8
    coverage report and prints to stdout
9
    :param report_path: str
10
    :return: None
11
    """
12
    subprocess.call(['coverage', 'report'])
13
    subprocess.call(['coverage', 'html'])
14
    logger.info('Check coverage: ' + report_path)
15