【问题标题】:Ionic e2e CI tests in jenkinsjenkins 中的离子 e2e CI 测试
【发布时间】:2016-07-11 08:33:34
【问题描述】:

我想实现与How to run ionic in the background 类似的功能,以便在 Jenkins 中运行我的 Ionic2 应用程序的 e2e 测试。 e2e 测试是使用量角器创建的。

选项 1) 在后台运行不起作用。正如建议的那样,我尝试了screen / tmux 喜欢:

stage 'e2e testing'
        sh 'tmux new-session -d -s ionicServe'
        sh 'tmux new-session -d -s e2e'

        sh 'tmux send-keys -t ionicServe "ionic serve --nobrowser --nolivereload localhost" C-m'
        sh 'tmux send-keys -t e2e "npm run e2ej" C-m'

        sh 'tmux attach -t e2e'

在本地/在 docker 容器中运行良好,但在 Jenkins 执行测试用例时不起作用。

您对如何使用 tmux 使其在 Jenkins 中工作或让 ionic 在没有 CLI 的情况下为应用程序提供服务(简单的 gulp 任务)有任何建议 p>

提示:gulp serve:before 似乎没有启动开发服务器。

【问题讨论】:

    标签: jenkins ionic-framework protractor tmux e2e-testing


    【解决方案1】:

    这 (https://github.com/lathonez/clicker/blob/master/.travis.yml) 是一个修复程序。但似乎并没有很好地集成到 Ionic CLI 中

    cd www && python -m SimpleHTTPServer 8100 >> python_serve.log 2>&1 &
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-05-05
      • 1970-01-01
      • 1970-01-01
      • 2018-05-12
      • 1970-01-01
      • 2018-12-12
      • 1970-01-01
      • 2018-05-22
      相关资源
      最近更新 更多