簡體   English   中英

ember-cli測試不使用docker中的phantomjs

[英]ember-cli test not working with phantomjs in docker

運行ember test --host 172.17.0.2 --test-port 4450 ,我收到以下錯誤。

Error: Browser failed to connect within 30s. testem.js not loaded?

由於我使用的是docker容器,我假設我需要將主機和端口更新為打開的docker主機和端口。

這是我的testem.js文件

/*jshint node:true*/
module.exports = {
  "framework": "qunit",
  "test_page": "tests/index.html?hidepassed",
  "phantomjs_debug_port": 4500,
  "disable_watching": true,
  "launch_in_ci": [
    "PhantomJS"
  ],
  "launch_in_dev": [
    "PhantomJS",
    "Chrome"
  ]
};

這是在持續集成環境中測試ember應用程序時會遇到的一般問題。 多個用戶已經發布了他們在此GitHub問題中可能出現的錯誤的經驗。 我想到了2個答案。

  1. 根據Testem的作者,您可以增加瀏覽器連接超時

  2. 比較你的余燼應用程序的.travis.yml在余燼新輸出庫的規范版本在這里 ember-cli核心團隊和社區成員投入了大量時間來完善和調試.travis.yml ,使其與ember應用程序配合良好。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM