From 9726ca6bbdc7d1ed5b0f732071210eed4ceada34 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Tue, 24 Aug 2010 11:18:35 -0400 Subject: New config setting: [report]precision lets you specify the number of digits after the decimal point in coverage percentages. Finishes issue #16. --- doc/config.rst | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'doc') diff --git a/doc/config.rst b/doc/config.rst index b0e5bf84..bcb24412 100644 --- a/doc/config.rst +++ b/doc/config.rst @@ -6,6 +6,7 @@ Configuration files :history: 20100223T201600, new for 3.3 :history: 20100725T211700, updated for 3.4. +:history: 20100824T092900, added ``precision``. Coverage.py options can be specified in a configuration file. This makes it @@ -116,6 +117,10 @@ in reporting. See :ref:`source` for details. ``omit`` (multi-string): a list of filename patterns, the files to leave out of reporting. See :ref:`source` for details. +``precision`` (integer): the number of digits after the decimal point to +display for reported coverage percentages. The default is 0, displaying +for example "87%". A value of 2 will display percentages like "87.32%". + [html] ------ -- cgit v1.2.1