pytest 执行 python 文件的时候,如何像 python 执行 python 文件那样传入参数,比如:python test.py arg1 写成 pytest test.py arg1

pytest 执行 python 文件的时候,如何像 python 执行 python 文件那样传入参数,比如:python test.py arg1 写成 pytest test.py arg1

参考下这篇吧