Add component tests to pipeline
This commit is contained in:
parent
ee9f20ae34
commit
f53b7791d1
|
|
@ -74,7 +74,6 @@ definitions:
|
||||||
- npm ci --prefix client
|
- npm ci --prefix client
|
||||||
- npm run "install:cypress" --prefix client
|
- npm run "install:cypress" --prefix client
|
||||||
- npm run dev --prefix client 2>&1 > /dev/null &
|
- npm run dev --prefix client 2>&1 > /dev/null &
|
||||||
- sleep 30
|
|
||||||
- curl http://localhost:8080/beta-login
|
- curl http://localhost:8080/beta-login
|
||||||
- npm run --prefix client test:cypress:frontend
|
- npm run --prefix client test:cypress:frontend
|
||||||
- &frontend-test-parallel
|
- &frontend-test-parallel
|
||||||
|
|
@ -91,9 +90,24 @@ definitions:
|
||||||
- npm ci --prefix client
|
- npm ci --prefix client
|
||||||
- npm run "install:cypress" --prefix client
|
- npm run "install:cypress" --prefix client
|
||||||
- npm run dev --prefix client 2>&1 > /dev/null &
|
- npm run dev --prefix client 2>&1 > /dev/null &
|
||||||
- sleep 30
|
|
||||||
- curl http://localhost:8080/beta-login
|
- curl http://localhost:8080/beta-login
|
||||||
- npm run --prefix client currents
|
- npm run --prefix client currents
|
||||||
|
- &component-test
|
||||||
|
name: run cypress frontend tests
|
||||||
|
caches:
|
||||||
|
- node
|
||||||
|
- clientmodules
|
||||||
|
- npm
|
||||||
|
- cypress
|
||||||
|
artifacts:
|
||||||
|
- client/cypress/**/*.png
|
||||||
|
- client/cypress/**/*.mp4
|
||||||
|
script:
|
||||||
|
- npm ci --prefix client
|
||||||
|
- npm run "install:cypress" --prefix client
|
||||||
|
- npm run dev --prefix client 2>&1 > /dev/null &
|
||||||
|
- curl http://localhost:8080/beta-login
|
||||||
|
- npm run --prefix client cypress:component:test
|
||||||
- &jest-test
|
- &jest-test
|
||||||
name: run jest tests
|
name: run jest tests
|
||||||
caches:
|
caches:
|
||||||
|
|
|
||||||
|
|
@ -18,10 +18,12 @@
|
||||||
"open:cypress:frontend": "npm run cypress:frontend:open",
|
"open:cypress:frontend": "npm run cypress:frontend:open",
|
||||||
"test:cypress:e2e": "npm run cypress:e2e:test",
|
"test:cypress:e2e": "npm run cypress:e2e:test",
|
||||||
"test:cypress:frontend": "npm run cypress:frontend:test",
|
"test:cypress:frontend": "npm run cypress:frontend:test",
|
||||||
|
"test:cypress:component": "npm run cypress:component:test",
|
||||||
"cypress:e2e:open": "cypress open --config-file cypress.e2e.ts",
|
"cypress:e2e:open": "cypress open --config-file cypress.e2e.ts",
|
||||||
"cypress:frontend:open": "cypress open --config-file cypress.frontend.ts",
|
"cypress:frontend:open": "cypress open --config-file cypress.frontend.ts",
|
||||||
"cypress:e2e:test": "cypress run --config-file cypress.e2e.ts",
|
"cypress:e2e:test": "cypress run --config-file cypress.e2e.ts",
|
||||||
"cypress:frontend:test": "cypress run --config-file cypress.frontend.ts",
|
"cypress:frontend:test": "cypress run --config-file cypress.frontend.ts",
|
||||||
|
"cypress:component:test": "cypress run --config-file cypress.frontend.ts --component",
|
||||||
"install:cypress": "cypress install",
|
"install:cypress": "cypress install",
|
||||||
"test:unit": "jest",
|
"test:unit": "jest",
|
||||||
"cypress:parallel": "CYPRESS_API_URL=\"https://iterativ-cypress-director.herokuapp.com/\" cy2 run --parallel --record --key somekey --config-file cypress.frontend.json --ci-build-id some-id",
|
"cypress:parallel": "CYPRESS_API_URL=\"https://iterativ-cypress-director.herokuapp.com/\" cy2 run --parallel --record --key somekey --config-file cypress.frontend.json --ci-build-id some-id",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue