Skip GoogleTest for CI on Windows

This commit is contained in:
Ivan Kravets
2022-06-26 16:06:25 +03:00
parent b9a9fd4f43
commit ca2622b7a6
4 changed files with 6 additions and 3 deletions

View File

@ -26,7 +26,6 @@ PlatformIO Core 6
* **Unit Testing**
- Updated "Getting Started" documentation for `GoogleTest <https://docs.platformio.org/en/latest/advanced/unit-testing/frameworks/googletest.html>`__ testing and mocking framework
- Export |UNITTESTING| flags only to the project build environment (``projenv``, files in "src" folder)
- Merged the "building" stage with "uploading" for the embedded target (`issue #4307 <https://github.com/platformio/platformio-core/issues/4307>`_)
- Do not resolve dependencies from the project "src" folder when the `test_build_src <https://docs.platformio.org/en/latest//projectconf/section_env_test.html#test-build-src>`__ option is not enabled

2
docs

Submodule docs updated: 03cb09aa4c...148072a28e

View File

@ -601,6 +601,10 @@ int main(int argc, char **argv)
assert json_report["failure_nums"] == 1
@pytest.mark.skipif(
sys.platform == "win32" and os.environ.get("GITHUB_ACTIONS") == "true",
reason="skip Github Actions on Windows (MinGW issue)",
)
def test_googletest_framework(clirunner, tmp_path: Path):
project_dir = tmp_path / "project"
shutil.copytree(