Add frontend test step to pipelines
This commit is contained in:
parent
4045923da0
commit
7032cf4e39
|
|
@ -40,7 +40,7 @@ aliases:
|
||||||
- &setup-tests source setup-for-tests.sh
|
- &setup-tests source setup-for-tests.sh
|
||||||
- ./server/run_unittests_coverage.sh
|
- ./server/run_unittests_coverage.sh
|
||||||
- &cypress-test
|
- &cypress-test
|
||||||
name: run cypress tests
|
name: run cypress end-to-end tests
|
||||||
caches:
|
caches:
|
||||||
- pip
|
- pip
|
||||||
- node
|
- node
|
||||||
|
|
@ -62,6 +62,21 @@ aliases:
|
||||||
- npm run build --prefix client
|
- npm run build --prefix client
|
||||||
- curl http://localhost:8000/beta-login
|
- curl http://localhost:8000/beta-login
|
||||||
- npm run --prefix client test:cypress:e2e
|
- npm run --prefix client test:cypress:e2e
|
||||||
|
- &frontend-test
|
||||||
|
name: run cypress frontend tests
|
||||||
|
caches:
|
||||||
|
- node
|
||||||
|
- clientmodules
|
||||||
|
- npm
|
||||||
|
artifacts:
|
||||||
|
- client/cypress/**/*.png
|
||||||
|
- client/cypress/**/*.mp4
|
||||||
|
script:
|
||||||
|
- npm ci --prefix client
|
||||||
|
- npm run "install:cypress" --prefix client
|
||||||
|
- npm run dev --prefix client &
|
||||||
|
- curl http://localhost:8080/beta-login
|
||||||
|
- npm run --prefix client test:cypress:frontend
|
||||||
- &jest-test
|
- &jest-test
|
||||||
name: run jest tests
|
name: run jest tests
|
||||||
caches:
|
caches:
|
||||||
|
|
@ -108,6 +123,7 @@ pipelines:
|
||||||
- step: *lint
|
- step: *lint
|
||||||
- step: *unittest-python
|
- step: *unittest-python
|
||||||
- step: *cypress-test
|
- step: *cypress-test
|
||||||
|
- step: *frontend-test
|
||||||
- step: *jest-test
|
- step: *jest-test
|
||||||
- step: *deploy-dev
|
- step: *deploy-dev
|
||||||
|
|
||||||
|
|
@ -123,6 +139,7 @@ pipelines:
|
||||||
- step: *lint
|
- step: *lint
|
||||||
- step: *unittest-python
|
- step: *unittest-python
|
||||||
- step: *cypress-test
|
- step: *cypress-test
|
||||||
|
- step: *frontend-test
|
||||||
- step: *jest-test
|
- step: *jest-test
|
||||||
- parallel:
|
- parallel:
|
||||||
- step: *deploy-stage
|
- step: *deploy-stage
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue