From 8153341439f1eddddad18ee6ca8ca10a88549129 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Fri, 3 Sep 2010 23:15:20 -0400 Subject: Now completely unexecuted source files can be included in reporting. Specifying --source tells coverage.py where to search for files that haven't been executed. --- test/test_data.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/test_data.py') diff --git a/test/test_data.py b/test/test_data.py index 83a5b8ae..fd7e4878 100644 --- a/test/test_data.py +++ b/test/test_data.py @@ -45,6 +45,12 @@ class DataTest(CoverageTest): self.assert_summary(covdata, SUMMARY_1) self.assert_executed_files(covdata, EXECED_FILES_1) + def test_touch_file(self): + covdata = CoverageData() + covdata.add_line_data(DATA_1) + covdata.touch_file('x.py') + self.assert_executed_files(covdata, EXECED_FILES_1 + ['x.py']) + def test_writing_and_reading(self): covdata1 = CoverageData() covdata1.add_line_data(DATA_1) -- cgit v1.2.1