diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-06-28 17:11:17 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-06-28 17:11:17 -0400 |
commit | 538b228005fe3aefbcb71c31220aa8416f56fc03 (patch) | |
tree | 4ac563cc6918a9acb92b99426671997f20065bdc | |
parent | 1dd32e13a89a3d731b928a015a5f30cf30cd5bcb (diff) | |
download | python-coveragepy-git-538b228005fe3aefbcb71c31220aa8416f56fc03.tar.gz |
Paperwork for last merge
-rw-r--r-- | CHANGES.txt | 8 | ||||
-rw-r--r-- | tests/test_process.py | 2 |
2 files changed, 10 insertions, 0 deletions
diff --git a/CHANGES.txt b/CHANGES.txt index ba443b56..ed208e2f 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -3,6 +3,14 @@ Change history for Coverage.py ------------------------------ +Latest +------ + +- All the reporting functions now behave the same if no data had been + collected, exiting with a status code of 1. Fixed ``fail_under`` to be + applied even when the report is empty. Thanks, Ionel Cristian Mărieș. + + Version 4.0a6 --- 21 June 2015 ------------------------------ diff --git a/tests/test_process.py b/tests/test_process.py index 3fcaa9cc..17ac125a 100644 --- a/tests/test_process.py +++ b/tests/test_process.py @@ -705,6 +705,7 @@ class FailUnderTest(CoverageTest): class FailUnderNoFilesTest(CoverageTest): + """Test that nothing to report results in an error exit status.""" def setUp(self): super(FailUnderNoFilesTest, self).setUp() self.make_file(".coveragerc", "[report]\nfail_under = 99\n") @@ -726,6 +727,7 @@ class FailUnderNoFilesTest(CoverageTest): class FailUnderEmptyFilesTest(CoverageTest): + """Test that empty files produce the proper fail_under exit status.""" def setUp(self): super(FailUnderEmptyFilesTest, self).setUp() |