简体   繁体   中英

pyresttest run all tests in directory

I have some testcase files of type yaml in a directory. Im using pyresttest to run them and test my app. I want to run all tests in the directory. I can write a script to do it but is there anyway run all testcases with pyresttest ?

Author of PyRestTest here: there is not a way to do this.

Besides a script, what you can do is create a test file that imports other files in the same directory and then run that.

This is the suggested way to create higher-level test suites that reuse shared test files.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM