diff options
author | Patrick Reynolds <patrick.reynolds@kitware.com> | 2013-09-27 14:42:39 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-10-08 13:20:30 (GMT) |
commit | d0ec3a01a61f259768d31fc20791780807e1788e (patch) | |
tree | d5dfba622c1739ddedadfe7190eda5c7959a27f5 /Tests/PythonCoverage/coveragetest/foo.py | |
parent | 6ed8504ea5633932e5db3a5a70853a763df7af50 (diff) | |
download | CMake-d0ec3a01a61f259768d31fc20791780807e1788e.zip CMake-d0ec3a01a61f259768d31fc20791780807e1788e.tar.gz CMake-d0ec3a01a61f259768d31fc20791780807e1788e.tar.bz2 |
Adding support for the Python coverage.py tool.
This assumes that coverage.py has been run in such a way to produce its
standard XML output. This uses the Cobertura schema and should be somewhat
generalizable.
Diffstat (limited to 'Tests/PythonCoverage/coveragetest/foo.py')
-rw-r--r-- | Tests/PythonCoverage/coveragetest/foo.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/PythonCoverage/coveragetest/foo.py b/Tests/PythonCoverage/coveragetest/foo.py new file mode 100644 index 0000000..97b5a41 --- /dev/null +++ b/Tests/PythonCoverage/coveragetest/foo.py @@ -0,0 +1,8 @@ + +def foo(): + x = 3 + 3 + return x + +def bar(): + y = 2 + 2 + return y |