【发布时间】: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