tools: Change coverage tool to work with '.coverage' file.
- Was generating coverage by running a corresponding test file for the current file. Wasn't obvious where test file was. - This shows coverage if a .coverage file exists which is newer than the current file. - The .coverage file needs to be created independantly. And then the reports can be refreshed.
This commit is contained in:
parent
6fdbfc16c7
commit
3dfb81563c
3 changed files with 18 additions and 31 deletions
|
|
@ -1,5 +0,0 @@
|
|||
[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
|
||||
[m[38;2;0;159;107m[48;2;0;0;0m> def hi():
|
||||
> print("hi")
|
||||
[m
|
||||
|
|
@ -106,9 +106,6 @@ class ToolsTestCase(unittest.TestCase):
|
|||
def test_mypy(self):
|
||||
self._test_tool(tools.mypy, self.HI_OK)
|
||||
|
||||
def test_python_coverage(self):
|
||||
self._test_tool(tools.python_coverage, self.HI_NORMAL)
|
||||
|
||||
def test_pycodestyle(self):
|
||||
self._test_tool(tools.pycodestyle, self.HI_OK)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue