From cf1efa814e905ab1e2bc17795b1dbe6d437b39e5 Mon Sep 17 00:00:00 2001 From: stepeos <82703776+stepeos@users.noreply.github.com> Date: Sat, 5 Nov 2022 17:29:04 +0100 Subject: feat: report terminal output in Markdown Table format #1418 (#1479) * refactoring normal reporting text output * implemented markdown feature from #1418 * minor changes * fixed text output * fixed precision for text and markdown report format * minor changes * finished testing for markdown format feature * fixed testing outside test_summary.py * removed fixed-length widespace padding for tests * removed whitespaces * refactoring, fixing docs, rewriting cmd args * fixing code quality * implementing requested changes * doc fix * test: add another test of correct report formatting * fixed precision printing test * style: adjust the formatting Co-authored-by: Ned Batchelder --- coverage/config.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'coverage/config.py') diff --git a/coverage/config.py b/coverage/config.py index c2375d03..1f239ea3 100644 --- a/coverage/config.py +++ b/coverage/config.py @@ -199,6 +199,7 @@ class CoverageConfig: # Defaults for [report] self.exclude_list = DEFAULT_EXCLUDE[:] self.fail_under = 0.0 + self.output_format = None self.ignore_errors = False self.report_include = None self.report_omit = None @@ -374,6 +375,7 @@ class CoverageConfig: # [report] ('exclude_list', 'report:exclude_lines', 'regexlist'), ('fail_under', 'report:fail_under', 'float'), + ('output_format', 'report:output_format', 'boolean'), ('ignore_errors', 'report:ignore_errors', 'boolean'), ('partial_always_list', 'report:partial_branches_always', 'regexlist'), ('partial_list', 'report:partial_branches', 'regexlist'), -- cgit v1.2.1