gpt4 book ai didi

php - 如何在Docker容器中为Laravel运行和安装Protractor E2E测试?

转载 作者:行者123 更新时间:2023-12-02 18:41:22 24 4
gpt4 key购买 nike

我在dockervel中开发了 LAravel AngularJS应用程序。
我必须使用Protractor中的e2e测试测试AngularJS,然后再交付包含e2e测试的应用程序。

在这个dockervel中,我有

包含的容器

Nginx 1.8.0 & PHP 5.6 running in Alpine
MariaDB 5.5 running in Alpine
Redis running in Alpine
Composer PHP running in Alpine.
Artisan running in Debian (alpine is missing some PHP packages)
NodeJS with gulp, grunt and bower -g installed in official node:4.2.2-slim base image
Volumes mounted as containers

dockervel中的别名:
alias dbuild='docker-compose build'
alias dup='docker-compose up -d'
alias dstop='docker-compose stop'
alias drun='docker-compose run -d --service-ports nginx'
alias dcomposer='docker-compose run composer'
alias dcomposer-create='docker-compose run composer create-project laravel/laravel /var/www --prefer-dist'
alias dpermit='chmod -R 777 www'
alias dartisan='docker-compose run artisan'
alias dnodejs='docker-compose run nodejs'
alias dgulp='docker-compose run nodejs gulp'
alias dgulp-watch='docker-compose run -d nodejs gulp watch'
alias dps='docker ps'
alias dpsa='docker ps -a'
alias dstats='docker stats $(docker ps -q)'
alias dkill='docker stop $(docker ps -q)'
alias drm='docker rm $(docker ps -a -q)'
alias dunit='docker-compose run php php /var/www/html/vendor/bin/phpunit'

有什么方法可以安装和设置PRotractor在他的环境中运行?

最佳答案

是的,如果您想在浏览器打开的情况下运行脚本,那么它是没有头的。您只需要忽略protractor.sh文件,并直接在控制台中提供protractor conf.js命令即可。
它会照常启动您的浏览器!

关于php - 如何在Docker容器中为Laravel运行和安装Protractor E2E测试?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38309210/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com