Skip to content

Commit 70d3d19

Browse files
committed
Upgrade testing frameworks to the latest versions // Resolve #5327
1 parent 622200f commit 70d3d19

4 files changed

Lines changed: 4 additions & 3 deletions

File tree

HISTORY.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ test-driven methodologies, and modern toolchains for unrivaled success.
2323
~~~~~~~~~~~~~~~~~~~
2424

2525
* Added support for Python 3.14
26+
* Upgraded the `Doctest <https://docs.platformio.org/en/latest/advanced/unit-testing/frameworks/doctest.html>`__ testing framework to version 2.4.12, the `GoogleTest <https://docs.platformio.org/en/latest/advanced/unit-testing/frameworks/doctest.html>`__ to version 1.17.0, and the `Unity <https://docs.platformio.org/en/latest/advanced/unit-testing/frameworks/unity.html>`__ to version 2.6.1, incorporating the latest features and improvements for enhanced testing capabilities
2627
* Fixed a regression issue where custom build flags were not properly reflected in the `compile_commands.json <https://docs.platformio.org/en/latest/integration/compile_commands.html>`__ file, ensuring accurate compilation database generation
2728
* Fixed an issue where fully-qualified serial port URLs (e.g., ``rfc2217://host:port``) were incorrectly treated as wildcard patterns (`issue #5225 <https://github.com/platformio/platformio-core/issues/5225>`_)
2829
* Fixed an issue where the toolchain path in static analysis was not handled correctly if it contained spaces (`pull #5351 <https://github.com/platformio/platformio-core/issues/5351>`_)

platformio/test/runners/doctest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def _parse_assert(self, line):
101101

102102

103103
class DoctestTestRunner(TestRunnerBase):
104-
EXTRA_LIB_DEPS = ["doctest/doctest@^2.4.11"]
104+
EXTRA_LIB_DEPS = ["doctest/doctest@^2.4.12"]
105105

106106
def __init__(self, *args, **kwargs):
107107
super().__init__(*args, **kwargs)

platformio/test/runners/googletest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def _parse_source_and_message(self, stdout):
8888

8989

9090
class GoogletestTestRunner(TestRunnerBase):
91-
EXTRA_LIB_DEPS = ["google/googletest@^1.15.2"]
91+
EXTRA_LIB_DEPS = ["google/googletest@^1.17.0"]
9292

9393
def __init__(self, *args, **kwargs):
9494
super().__init__(*args, **kwargs)

platformio/test/runners/unity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727

2828
class UnityTestRunner(TestRunnerBase):
29-
EXTRA_LIB_DEPS = ["throwtheswitch/Unity@^2.6.0"]
29+
EXTRA_LIB_DEPS = ["throwtheswitch/Unity@^2.6.1"]
3030

3131
# Examples:
3232
# test/test_foo.cpp:44:test_function_foo:FAIL: Expected 32 Was 33

0 commit comments

Comments
 (0)