From 9c5438b3070bddba0bf557136076180496bda721 Mon Sep 17 00:00:00 2001 From: Marius Vikhammer Date: Mon, 27 Nov 2023 14:23:55 +0800 Subject: [PATCH] docs(pytest): add note about filtering with test-case-name --- docs/en/contribute/esp-idf-tests-with-pytest.rst | 2 ++ docs/zh_CN/contribute/esp-idf-tests-with-pytest.rst | 2 ++ 2 files changed, 4 insertions(+) diff --git a/docs/en/contribute/esp-idf-tests-with-pytest.rst b/docs/en/contribute/esp-idf-tests-with-pytest.rst index 2ba0b276b8..90509dd5c8 100644 --- a/docs/en/contribute/esp-idf-tests-with-pytest.rst +++ b/docs/en/contribute/esp-idf-tests-with-pytest.rst @@ -627,6 +627,8 @@ Filter the Test Cases In other cases, pytest would run all the test cases with sdkconfig file ``sdkconfig.ci.``. +- Filter by test-case name with ``pytest -k `` to run a single test-case, e.g. ``pytest -k test_int_wdt_cache_disabled``. + Add New Markers --------------- diff --git a/docs/zh_CN/contribute/esp-idf-tests-with-pytest.rst b/docs/zh_CN/contribute/esp-idf-tests-with-pytest.rst index 88246441b2..a55837d76d 100644 --- a/docs/zh_CN/contribute/esp-idf-tests-with-pytest.rst +++ b/docs/zh_CN/contribute/esp-idf-tests-with-pytest.rst @@ -627,6 +627,8 @@ CI 用于执行所有相关测试的命令为: ``pytest --target 如果是其他情况,pytest 会执行所有 sdkconfig 文件包含 ``sdkconfig.ci.`` 的测试用例。 +- 使用 ``pytest -k `` 按测试用例名称筛选,可以运行单个测试用例,例如 ``pytest -k test_int_wdt_cache_disabled``。 + 添加新 marker ----------------