- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我们遇到了 PHPUnit 有时无法在 CI 中正确运行我们的测试套件的问题。该行为表现为大约 1/3 的测试未能启动并且 CI 步骤超时。有趣的是,我们没有看到这种行为:
+ sleep 30
+ docker-compose -f docker-compose.ci.yml run --rm postgres pg_isready -h postgres -d testing -U testing -t 30
postgres:5432 - accepting connections
+ docker-compose -f docker-compose.ci.yml run --no-deps backend phpunit '--filter=/::test[J-Z|j-z]/' --testdox
Pulling backend (***.dkr.ecr.ap-southeast-2.amazonaws.com/builder:acb548c6125ad97e57e8070c414644c7e6f385f5)...
acb548c6125ad97e57e8070c414644c7e6f385f5: Pulling from builder
Digest: sha256:c84a53dbb201b809a2325a93c52d4a362eefa6de64ab98f759e43c5dd363aac2
Status: Downloaded newer image for ***.dkr.ecr.ap-southeast-2.amazonaws.com/builder:acb548c6125ad97e57e8070c414644c7e6f385f5
PHPUnit 9.1.5 by Sebastian Bergmann and contributors.
##[error]The operation was canceled.
+ sleep 30
+ docker-compose -f docker-compose.ci.yml run --rm postgres pg_isready -h postgres -d testing -U testing -t 30
postgres:5432 - accepting connections
+ docker-compose -f docker-compose.ci.yml run --no-deps backend phpunit '--filter=/::test[A-I|a-i]/' --testdox
Pulling backend (***.dkr.ecr.ap-southeast-2.amazonaws.com/builder:acb548c6125ad97e57e8070c414644c7e6f385f5)...
acb548c6125ad97e57e8070c414644c7e6f385f5: Pulling from builder
Digest: sha256:c84a53dbb201b809a2325a93c52d4a362eefa6de64ab98f759e43c5dd363aac2
Status: Downloaded newer image for ***.dkr.ecr.ap-southeast-2.amazonaws.com/builder:acb548c6125ad97e57e8070c414644c7e6f385f5
PHPUnit 9.1.5 by Sebastian Bergmann and contributors.
Audit Controller (Tests\Feature\Admin\AuditController)
✔ Audits index
1 Câu trả lời
我在 Codeception 框架的测试中遇到了类似(但不一样)的问题,但我没有使用 Github Actions 和 docker。
问题在于测试期间如何将数据库部署到服务器。由于该数据库已部署了很长时间,但在那之后,测试开始了。我们对服务器没有限制,所以没有超时。
在本地机器上它工作正常。
正如我所见,您正在使用数据库运行功能/验收测试,因此我建议检查数据库模块。
关于CI 中的 PHPUnit 停滞,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62125230/
我们遇到了 PHPUnit 有时无法在 CI 中正确运行我们的测试套件的问题。该行为表现为大约 1/3 的测试未能启动并且 CI 步骤超时。有趣的是,我们没有看到这种行为: 在我们的机器上本地 每次我
ExecutorService 中的所有线程都忙于等待执行程序服务队列中卡住的任务。 示例代码: ExecutorService es=Executors.newFixedThreadPool(8);
我有一个正在使用的工具,我需要它来运行解析器并输出另一个分析日志。目前我有它,所以它是通过网络界面。 用户转到表单并提交文件名进行解析(文件已在系统中)。 表单向Python CGI脚本提交信息 Py
两天来我一直在努力解决这个问题,但没有得到评估。任何帮助将不胜感激。 我安装了以下内容: eclipse android-sdk-macosx Android SDK 工具 Android 2.2 A
我在我的 package.json 中编写了以下测试命令: "scripts": { "test": "./node_modules/.bin/jasmine-node spec", }, 当
Tôi là một lập trình viên xuất sắc, rất giỏi!