forked from platformio/platformio-core
Print ignored environments and test suites in only in verbose mode
Resolve #3726
This commit is contained in:
@ -12,6 +12,7 @@ PlatformIO Core 5
|
|||||||
~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
- Generate a working "projectEnvName" for PlatformIO IDE's debugger for VSCode
|
- 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)
|
5.0.2 (2020-10-30)
|
||||||
~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~
|
||||||
|
@ -177,7 +177,7 @@ def cli( # pylint: disable=redefined-builtin
|
|||||||
if without_testing:
|
if without_testing:
|
||||||
return
|
return
|
||||||
|
|
||||||
print_testing_summary(results)
|
print_testing_summary(results, verbose)
|
||||||
|
|
||||||
command_failed = any(r.get("succeeded") is False for r in results)
|
command_failed = any(r.get("succeeded") is False for r in results)
|
||||||
if command_failed:
|
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()
|
click.echo()
|
||||||
|
|
||||||
tabular_data = []
|
tabular_data = []
|
||||||
@ -236,6 +236,8 @@ def print_testing_summary(results):
|
|||||||
failed_nums += 1
|
failed_nums += 1
|
||||||
status_str = click.style("FAILED", fg="red")
|
status_str = click.style("FAILED", fg="red")
|
||||||
elif result.get("succeeded") is None:
|
elif result.get("succeeded") is None:
|
||||||
|
if not verbose:
|
||||||
|
continue
|
||||||
status_str = "IGNORED"
|
status_str = "IGNORED"
|
||||||
else:
|
else:
|
||||||
succeeded_nums += 1
|
succeeded_nums += 1
|
||||||
|
Reference in New Issue
Block a user