From 078f3e6be49e640bf2cf263786eef8c1d74af5d9 Mon Sep 17 00:00:00 2001 From: Stuart Young Date: Tue, 16 Jan 2018 11:30:20 -0500 Subject: [PATCH] paver flag to run unittests without coverage --- pavelib/tests.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pavelib/tests.py b/pavelib/tests.py index 808c09f266..cd0b38f9c3 100644 --- a/pavelib/tests.py +++ b/pavelib/tests.py @@ -53,6 +53,10 @@ __test__ = False # do not collect "--disable_capture", action="store_true", dest="disable_capture", help="Disable capturing of stdout/stderr" ), + make_option( + "--disable-coverage", action="store_false", dest="with_coverage", + help="Run the unit tests directly through pytest, NOT coverage" + ), make_option( '--disable-migrations', action='store_true', @@ -140,6 +144,10 @@ def test_system(options, passthrough_options): "--disable_capture", action="store_true", dest="disable_capture", help="Disable capturing of stdout/stderr" ), + make_option( + "--disable-coverage", action="store_false", dest="with_coverage", + help="Run the unit tests directly through pytest, NOT coverage" + ), ], share_with=['pavelib.utils.test.utils.clean_reports_dir']) @PassthroughTask @timed