diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2010-03-06 12:27:50 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2010-03-06 12:27:50 -0500 |
commit | f80a6b08cbb593a0ec0419ac01e6826c7072376b (patch) | |
tree | 01591e7c45aa43b3a73bbbfc18044c5fc404904c /test/test_process.py | |
parent | d7eecfcb48fe8b57d6051687b9e23523fef639e4 (diff) | |
download | python-coveragepy-git-f80a6b08cbb593a0ec0419ac01e6826c7072376b.tar.gz |
Don't let parallel=True prevent reporting. Fixes #49.
Diffstat (limited to 'test/test_process.py')
-rw-r--r-- | test/test_process.py | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/test/test_process.py b/test/test_process.py index fca79d48..ce98a383 100644 --- a/test/test_process.py +++ b/test/test_process.py @@ -1,6 +1,6 @@ """Tests for process behavior of coverage.py.""" -import os, sys +import os, sys, textwrap import coverage sys.path.insert(0, os.path.split(__file__)[0]) # Force relative import for Py3k @@ -120,12 +120,13 @@ class ProcessTest(CoverageTest): data.read_file(".coverage") self.assertEqual(data.summary()['b_or_c.py'], 7) - # TODO - ## Reporting should still work even with the .rc file - #out = self.run_command("coverage report") - #self.assertMultiLineEqual(out, """\ - # hello - # """) + # Reporting should still work even with the .rc file + out = self.run_command("coverage report") + self.assertMultiLineEqual(out, textwrap.dedent("""\ + Name Stmts Exec Cover + ---------------------------- + b_or_c 7 7 100% + """)) def test_missing_source_file(self): # Check what happens if the source is missing when reporting happens. |