changeset 668:9f5e9e0f6ac9

0.6dev: Adding a more complete (and correct) example of running python tests with Figleaf coverage. Thanks Hodgestar.
author osimons
date Thu, 03 Sep 2009 12:32:43 +0000
parents 9d19ae17a401
children 463cd827f567
files doc/commands.txt
diffstat 1 files changed, 9 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/doc/commands.txt
+++ b/doc/commands.txt
@@ -827,9 +827,15 @@
 
 .. code-block:: xml
 
-  <step id="figleaf" description="Figleaf coverage">
-    <sh:exec executable="figleaf" args="setup.py test"/>
-    <python:figleaf summary=".figleaf" exclude="build/* setup* */tests/*"/>
+  <step id="test" description="Unittests with Figleaf coverage">
+    <python:distutils command="unittest"
+        options="--xml-output build/test-results.xml
+                 --coverage-summary build/test-coverage.txt
+                 --coverage-dir build/coverage
+                 --coverage-method figleaf" />
+    <python:unittest file="build/test-results.xml"/>
+    <python:figleaf summary="build/test-coverage.txt"
+        include="mypackage/*" exclude="*/tests/*" />
   </step>
 
 
Copyright (C) 2012-2017 Edgewall Software