cypress e2e tests

This commit is contained in:
Milos Stojanovic
2019-06-26 14:48:52 +02:00
parent 6eb666ed40
commit 247f51de30
2 changed files with 14 additions and 1 deletions

View File

@@ -8,6 +8,17 @@ php:
env:
- NODE_RELEASE=6.x
addons:
apt:
packages:
# Cypress dependency
- libgconf-2-4
cache:
directories:
# cache Cypress binary
- ~/.cache
before_script:
- composer self-update
- sudo rm -rf ~/.nvm - curl -sL "https://deb.nodesource.com/setup_${NODE_RELEASE}" | sudo -E bash -
@@ -21,6 +32,7 @@ install:
script:
- vendor/bin/phpunit --coverage-clover=coverage.xml
- npm run lint
- npm run test:e2e
after_success:
- bash <(curl -s https://codecov.io/bash)

View File

@@ -6,7 +6,8 @@
"serve": "concurrently \"php -S localhost:8081\" \"vue-cli-service serve\"",
"build": "vue-cli-service build --no-clean",
"lint": "vue-cli-service lint --no-fix frontend/",
"test:e2e": "vue-cli-service test:e2e",
"e2e": "vue-cli-service test:e2e",
"test:e2e": "vue-cli-service test:e2e --headless",
"test:unit": "vue-cli-service test:unit"
},
"devDependencies": {