diff --git a/HISTORY.rst b/HISTORY.rst index 8109014e..30960775 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -44,12 +44,14 @@ Please check `Migration guide from 5.x to 6.0 `_ engine and documentation - Added a new "test" `build configuration `__ - Added support for test hierarchies (nested test suites) (`issue #4135 `_) - Generate reports in JUnit and JSON formats using the `pio test --output-format `__ option (`issue #2891 `_) - Provide more information when the native program crashed on a host (errored with a negative return code) (`issue #3429 `_) - Fixed an issue when command line parameters ("--ignore", "--filter") do not override values defined in the |PIOCONF| (`issue #3845 `_) - Renamed the "test_build_project_src" project configuration option to `test_build_src `__ + - Removed the "test_transport" option in favor of the `Custom "unity_config.h" `_ * **Static Code Analysis** @@ -82,7 +84,6 @@ Please check `Migration guide from 5.x to 6.0 `_) - - Better handling of the failed tests using the `Unit Testing `__ solution - Finally removed all tracks to the Python 2.7, the Python 3.6 is the minimum supported version. .. _release_notes_5: diff --git a/README.rst b/README.rst index 54ab2c7e..6288ff72 100644 --- a/README.rst +++ b/README.rst @@ -6,7 +6,7 @@ PlatformIO Core =============== .. image:: https://github.com/platformio/platformio-core/workflows/Core/badge.svg - :target: https://docs.platformio.org/page/core/index.html + :target: https://docs.platformio.org/en/latest/core/index.html :alt: CI Build for PlatformIO Core .. image:: https://github.com/platformio/platformio-core/workflows/Examples/badge.svg :target: https://github.com/platformio/platformio-examples @@ -53,24 +53,24 @@ PlatformIO Core Get Started ----------- -* `What is PlatformIO? `_ +* `What is PlatformIO? `_ * `PlatformIO IDE `_ -* `PlatformIO Core (CLI) `_ +* `PlatformIO Core (CLI) `_ * `Project Examples `__ Solutions --------- -* `Library Management `_ -* `Desktop IDEs Integration `_ -* `Continuous Integration `_ +* `Library Management `_ +* `Desktop IDEs Integration `_ +* `Continuous Integration `_ **Advanced** -* `Debugging `_ -* `Unit Testing `_ -* `Static Code Analysis `_ -* `Remote Development `_ +* `Debugging `_ +* `Unit Testing `_ +* `Static Code Analysis `_ +* `Remote Development `_ Registry -------- @@ -90,7 +90,7 @@ Telemetry / Privacy Policy Share minimal diagnostics and usage information to help us make PlatformIO better. It is enabled by default. For more information see: -* `Telemetry Setting `_ +* `Telemetry Setting `_ License ------- diff --git a/docs b/docs index 4e8c2065..9a4041a3 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit 4e8c206585c9dc173139057de48059815abde578 +Subproject commit 9a4041a3f712ca28c9a85bac5317bf41c5855b5a diff --git a/examples b/examples index c156fe7b..0dbddd68 160000 --- a/examples +++ b/examples @@ -1 +1 @@ -Subproject commit c156fe7b99a92661bf7dd1f826626464df476708 +Subproject commit 0dbddd689a47ee10d44687a8e84c1dcba3b7f406 diff --git a/platformio/commands/project.py b/platformio/commands/project.py index b1056410..acf6da81 100644 --- a/platformio/commands/project.py +++ b/platformio/commands/project.py @@ -339,7 +339,7 @@ def init_test_readme(test_dir): with open(os.path.join(test_dir, "README"), mode="w", encoding="utf8") as fp: fp.write( """ -This directory is intended for PlatformIO Unit Testing and project tests. +This directory is intended for PlatformIO Test Runner and project tests. Unit Testing is a software testing method by which individual units of source code, sets of one or more MCU program modules together with associated @@ -348,7 +348,7 @@ determine whether they are fit for use. Unit testing finds problems early in the development cycle. More information about PlatformIO Unit Testing: -- https://docs.platformio.org/page/plus/unit-testing.html +- https://docs.platformio.org/en/latest/advanced/unit-testing/index.html """, ) diff --git a/platformio/test/runners/unity.py b/platformio/test/runners/unity.py index 5dda99b7..99d66608 100644 --- a/platformio/test/runners/unity.py +++ b/platformio/test/runners/unity.py @@ -202,7 +202,8 @@ void unityOutputComplete(void) { unittest_uart_end(); } raise UnitTestSuiteError( f"Could not find Unity configuration for the `{framework}` framework.\n" "Learn how to create a custom Unity configuration at" - "https://docs.platformio.org/page/plus/unit-testing.html" + "https://docs.platformio.org/en/latest/advanced/" + "unit-testing/frameworks/unity.html" ) def configure_build_env(self, env): diff --git a/tests/commands/test_test.py b/tests/commands/test_test.py index acbce50c..d8780fae 100644 --- a/tests/commands/test_test.py +++ b/tests/commands/test_test.py @@ -48,7 +48,7 @@ def test_calculator_example(tmp_path: Path): assert int(junit_testsuites.get("tests")) == 11 assert int(junit_testsuites.get("errors")) == 2 assert int(junit_testsuites.get("failures")) == 1 - assert len(junit_testsuites.findall("testsuite")) == 9 + assert len(junit_testsuites.findall("testsuite")) == 6 junit_errored_testcase = junit_testsuites.find( ".//testcase[@name='uno:test_embedded']" )