run_failed
Rerun only the tests that failed in the last test run, supporting pytest, Jest, Cypress, Go, and Maestro. Requires a prior run_tests execution.
Instructions
只重跑上次失敗的測試——比跑整套套件快很多,適合修完一個 bug 後驗證迭代。pytest 走 --lf(last-failed)、Jest 走 --onlyFailures、Cypress 解析上次 report.json 的 failures[] 反查 spec 重跑、Go 撈失敗的 Test 名組成 regex 餵 -run、Maestro 反查 nodeid 對應 .yaml 重跑。需要先有過一次 run_tests(不然 report.json 不存在)。回傳 shape 跟 run_tests 一樣,接 get_test_report / get_failure_details 同樣方式檢視。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||