From 6d1e637518a6d8903886fe3b0c985cffe128f9eb Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Thu, 5 May 2022 17:36:15 +0300 Subject: [PATCH] Add support for Semihosting and Unit Testing // Resolve #3516 --- HISTORY.rst | 1 + docs | 2 +- examples | 2 +- platformio/test/runners/base.py | 6 +++--- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index 88d2734b..c7c25591 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -48,6 +48,7 @@ Please check `Migration guide from 5.x to 6.0 `_ (`issue #4135 `_) - New: `Custom Testing Framework `_ - New: Using hardware `Simulators `__ for Unit Testing (QEMU, Renode, SimAVR, and custom solutions) + - New: `Semihosting `__ (`issue #3516 `_) - Added a new "test" `build configuration `__ - Added support for the ``socket://`` and ``rfc2217://`` protocols using `test_port `__ option (`issue #4229 `_) - Added support for a `Custom Unity Library `__ (`issue #3980 `_) diff --git a/docs b/docs index 785de717..f9b22185 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit 785de717dbd4d023c875b39c80e5b7329eaa5d30 +Subproject commit f9b221850985ffe88020d8bb2f36230b47542050 diff --git a/examples b/examples index 7831450c..5240b19d 160000 --- a/examples +++ b/examples @@ -1 +1 @@ -Subproject commit 7831450cd7a52b8cc1e4d886f8e1a2128cc4dd1f +Subproject commit 5240b19d2dcc76b566091c8b7ce0eeb8d485de5b diff --git a/platformio/test/runners/base.py b/platformio/test/runners/base.py index 746defd7..ff28803a 100644 --- a/platformio/test/runners/base.py +++ b/platformio/test/runners/base.py @@ -113,7 +113,7 @@ class TestRunnerBase: def stage_building(self): if self.options.without_building: return None - click.secho("Building...", bold=self.options.verbose) + click.secho("Building...", bold=True) targets = ["__test"] if not self.options.without_debugging: targets.append("__debug") @@ -127,7 +127,7 @@ class TestRunnerBase: def stage_uploading(self): if self.options.without_uploading or not self.platform.is_embedded(): return None - click.secho("Uploading...", bold=self.options.verbose) + click.secho("Uploading...", bold=True) targets = ["upload"] if self.options.without_building: targets.append("nobuild") @@ -143,7 +143,7 @@ class TestRunnerBase: def stage_testing(self): if self.options.without_testing: return None - click.secho("Testing...", bold=self.options.verbose) + click.secho("Testing...", bold=True) test_port = self.get_test_port() program_conds = [ not self.platform.is_embedded()