diff --git a/HISTORY.rst b/HISTORY.rst index 8ede7429..7ee070c6 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -14,6 +14,7 @@ PlatformIO Core 5 - Added an error selector for `Sublime Text `__ build runner (`issue #3733 `_) - Generate a working "projectEnvName" for PlatformIO IDE's debugger for VSCode - Force VSCode's intelliSenseMode to "gcc-x64" when GCC toolchain is used +- 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 diff --git a/platformio/package/manager/library.py b/platformio/package/manager/library.py index 2843e9ba..9f8bd28a 100644 --- a/platformio/package/manager/library.py +++ b/platformio/package/manager/library.py @@ -127,7 +127,13 @@ class LibraryPackageManager(BasePackageManager): # pylint: disable=too-many-anc for key, value in dependency.items() if key in ("authors", "platforms", "frameworks") } - return self._install(spec, search_filters=search_filters or None, silent=silent) + try: + return self._install( + spec, search_filters=search_filters or None, silent=silent + ) + except UnknownPackageError: + pass + return None def uninstall_dependencies(self, pkg, silent=False): assert isinstance(pkg, PackageItem)