From 01a32067d5eaedab45de9a1a3589ed302c27b76f Mon Sep 17 00:00:00 2001 From: valeros Date: Thu, 12 Nov 2020 15:22:47 +0200 Subject: [PATCH] Print ignored environments and test suites in only in verbose mode Resolve #3726 --- HISTORY.rst | 1 + platformio/commands/test/command.py | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index a96d3dc2..bf0f71c6 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -12,6 +12,7 @@ PlatformIO Core 5 ~~~~~~~~~~~~~~~~~~ - Generate a working "projectEnvName" for PlatformIO IDE's debugger for VSCode +- Print ignored test suites and environments in the test summary report only in verbose mode (`issue #3726 `_) 5.0.2 (2020-10-30) ~~~~~~~~~~~~~~~~~~ diff --git a/platformio/commands/test/command.py b/platformio/commands/test/command.py index 13104bb2..a4b6634f 100644 --- a/platformio/commands/test/command.py +++ b/platformio/commands/test/command.py @@ -177,7 +177,7 @@ def cli( # pylint: disable=redefined-builtin if without_testing: return - print_testing_summary(results) + print_testing_summary(results, verbose) command_failed = any(r.get("succeeded") is False for r in results) if command_failed: @@ -222,7 +222,7 @@ def print_processing_footer(result): ) -def print_testing_summary(results): +def print_testing_summary(results, verbose=False): click.echo() tabular_data = [] @@ -236,6 +236,8 @@ def print_testing_summary(results): failed_nums += 1 status_str = click.style("FAILED", fg="red") elif result.get("succeeded") is None: + if not verbose: + continue status_str = "IGNORED" else: succeeded_nums += 1