gpt4 book ai didi

docker - Testcafe 通过 Docker 找不到测试文件

转载 作者:行者123 更新时间:2023-12-02 18:05:32 25 4
gpt4 key购买 nike

我喜欢通过 docker 运行 testcafe 测试,但我收到以下错误:

sudo docker run -u root -v ${PWD}:/e2e -it testcafe/testcafe chromium e2e/*.js

ERROR TestCafe could not find the test files that match the followingpatterns: e2e/e2e.docker.js e2e/e2e.js The "/" current workingdirectory was used as the base path. Ensure the file patterns arecorrect or change the current working directory.


我尝试了很多不同的论点,但从未成功运行基本测试。

最佳答案

确保正确指定了包含测试的目录。
例如:sudo docker run -v /home/username/test-project/tests:/e2e -it testcafe/testcafe chromium e2e/*.js

关于docker - Testcafe 通过 Docker 找不到测试文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63113285/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com