【问题标题】:Rest helper codeceptjs and docker休息助手 codeceptjs 和 docker
【发布时间】:2019-07-19 13:54:58
【问题描述】:

我正在运行 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 的情况下运行它会正常运行。

【问题讨论】:

    标签: rest docker codeceptjs


    【解决方案1】:

    在运行我的 dockerized codeceptjs 测试时,我遇到了类似但不相同的问题,通常该错误向我表明运行程序找不到 grep @s。我可以通过在硒的 Kubernetes 模板上运行它来解决它 -https://github.com/kubernetes/examples/tree/master/staging/selenium

    【讨论】:

      猜你喜欢
      • 2017-12-13
      • 2018-08-26
      • 1970-01-01
      • 2021-01-02
      • 2011-07-24
      • 2018-02-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多