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

fastest.file_handler.run_coverage   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 7
dl 0
loc 15
rs 10
c 0
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A execute_coverage() 0 10 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