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