Commit d7b9284
authored
[thermalctld] Report unit test coverage (sonic-net#141)
Report Pytest unit test coverage for thermalctld.
Current coverage:
```
----------- coverage: platform linux, python 3.7.3-final-0 -----------
Name Stmts Miss Cover
-----------------------------------------
scripts/thermalctld 424 113 73%
Coverage HTML written to dir htmlcov
Coverage XML written to file coverage.xml
```
- Also add check to import 'mock' from the 'unittest' package if running with Python 31 parent ad0a5ad commit d7b9284
3 files changed
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | | - | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
6 | 10 | | |
7 | 11 | | |
8 | 12 | | |
| |||
0 commit comments