docs(pytest): add note about filtering with test-case-name

This commit is contained in:
Marius Vikhammer 2023-11-27 14:23:55 +08:00
parent 676968ab0e
commit 9c5438b307
2 changed files with 4 additions and 0 deletions

View File

@ -627,6 +627,8 @@ Filter the Test Cases
In other cases, pytest would run all the test cases with sdkconfig file ``sdkconfig.ci.<sdkconfig>``.
- Filter by test-case name with ``pytest -k <test-case name>`` to run a single test-case, e.g. ``pytest -k test_int_wdt_cache_disabled``.
Add New Markers
---------------

View File

@ -627,6 +627,8 @@ CI 用于执行所有相关测试的命令为: ``pytest <parent_dir> --target
如果是其他情况pytest 会执行所有 sdkconfig 文件包含 ``sdkconfig.ci.<sdkconfig>`` 的测试用例。
- 使用 ``pytest -k <test-case name>`` 按测试用例名称筛选,可以运行单个测试用例,例如 ``pytest -k test_int_wdt_cache_disabled``
添加新 marker
----------------