Total Complexity | 1 |
Total Lines | 15 |
Duplicated Lines | 0 % |
Changes | 0 |
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 |