Print ignored environments and test suites in only in verbose mode

Resolve #3726
This commit is contained in:
valeros
2020-11-12 15:22:47 +02:00
parent ae7b8f9ecf
commit 01a32067d5
2 changed files with 5 additions and 2 deletions

View File

@ -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 <https://github.com/platformio/platformio-core/issues/3726>`_)
5.0.2 (2020-10-30)
~~~~~~~~~~~~~~~~~~

View File

@ -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