使用vscode+locust进行接口压测报错:Could not find any locustfile! Ensure file ends in '.py' and see --help for available options.解决方案

出现这个报错一般是因为.py文件的路径写的不对,请检查你的.py文件的路径是否正确,如下图才是正确的路径,如果写成

functiontest.py则会报错。

原文地址:https://www.cnblogs.com/lxmtx/p/12576683.html