reactjs - 在 bitbucket 上使用 testcafe 运行 e2e 测试
问题描述
所以我用 testcafe 编写了一些 e2e 测试,它们在我的本地机器上完美运行。现在我希望它们在 bitbucket 管道中运行,但我无法让它工作。
我的bitbucket-pipeline.yml
长相是这样的
image: testcafe/testcafe
pipelines:
default:
- step:
caches:
- node
script:
- npm ci
- /opt/testcafe/docker/testcafe-docker.sh 'firefox:headless --no-sandbox --disable-dev-shm-usage' test/**
我在管道上收到的错误消息:
A request to "http://127.0.0.1:3000/" has failed.
Use quarantine mode to perform additional attempts to execute this test.
You can find troubleshooting information for this issue at "https://go.devexpress.com/TestCafe_FAQ_ARequestHasFailed.aspx".
Error details:
Failed to find a DNS-record for the resource at"http://127.0.0.1:3000/".
Browser: Firefox 78.0 / Linux 0.0
有谁知道是什么导致了这个异常以及如何解决它?
解决方案
推荐阅读
- react-native - React-native with PropTypes:检查导航参数
- 2d - 我怎样才能让刚体在戈多中跳跃而不赋予它飞行的能力
- swift - 无法使用 Swift 和 UIKit 播放某些 mp4 文件
- text - 记事本或文本编辑器
- .net - 为什么只复制 .csproj 文件而不复制 Dockerfile 中的其余文件?
- logstash - LogstashEncoder 中的 CustomFields 属性不起作用
- django - 我可以使用 redis 作为后端代理服务器来存储聊天应用程序的 WebSocket 连接实例吗
- python - 从字符串中删除特殊字符,如果字符串在 python 中具有一定长度,则添加更多字符
- java - 无法解决:com.github.smrtyvz:ArchedImageProgressBar:2.01
- excel - Excel 嵌套 IF 公式中的“您键入的公式包含错误”