您如何使用剧作家指定测试文件夹/路径?
我希望能够指定我的测试现场的文件夹,以便剧作家不会尝试从所有文件夹中运行测试。有没有办法告诉剧作家只能从特定文件夹进行测试?
I want to be able to specify a folder where my tests live so that Playwright doesn't try to run tests from all folders. Is there a way to tell Playwright to only run tests from a specific folder?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 testdir 配置选项。例如:
从命令行运行
playwright
时,也可以通过提供文件夹来执行此操作:You can do this using the testDir config option. For example:
It's also possible to do this by providing a folder when running
playwright
from the command line: