1. 程式人生 > >httprunner(9)執行測試用例的方式總結

httprunner(9)執行測試用例的方式總結

# 前言 用過pytest的小夥伴都知道,pytest的執行方式是非常豐富的,可以說是你想怎麼執行怎麼執行,想執行哪些執行哪些,那httprunner是否同樣可以呢?   # 執行用例的各種方式   ## 執行指定路徑的用例 格式:`hrun + case路徑` ``` (httprunner_env) ➜ hrun hrun hrun_demo/testcases/baidu_test.py 2021-02-09 16:23:16.507 | INFO | httprunner.make:__make:512 - make path: /Users/jkc/hrun/hrun_demo/testcases/baidu_test.py 2021-02-09 16:23:16.508 | INFO | httprunner.make:format_pytest_with_black:170 - format pytest cases with black ... No Path provided. Nothing to do