我正在运行 Codeceptjs 和 Docker 的 REST Helper 进行 API 测试,但是当我运行它时,它只显示所有已通过且执行时间始终为 0ms
输出:
PS D:\work\testtt> docker-compose run --rm codeceptjs
CodeceptJS directory has been found.
CodeceptJS v2.0.4
Using test root "/tests"
Test @regression --
✔ Add Scholarship For Application @kss3 in **0ms**
✔ Add Accommodations For Application @kss3 in **0ms**
✔ Add Airport Transfer For Application @kss3 in **0ms**
✔ Add Booking Others @kss3 in **0ms**
✔ Add Booking Insurance @kss3 in **0ms**
我的 docker-compse 文件:
version: '3'
services:
codeceptjs:
image: codeception/codeceptjs
environment:
- CODECEPT_ARGS=-c ApiCarrotEnv.conf.js --grep kss3
volumes:
- .:/tests
container_name: docker-nightmare
但是如果我在没有 docker 的情况下运行它会正常运行。