mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
docs(pytest): add note about filtering with test-case-name
This commit is contained in:
parent
676968ab0e
commit
9c5438b307
@ -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
|
||||
---------------
|
||||
|
||||
|
@ -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
|
||||
----------------
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user