From 7032cf4e3944e1cc630a1793803f15dc848e6e1c Mon Sep 17 00:00:00 2001 From: Ramon Wenger Date: Tue, 16 Mar 2021 15:17:44 +0100 Subject: [PATCH] Add frontend test step to pipelines --- bitbucket-pipelines.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index 4074791a..8d21ae26 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -40,7 +40,7 @@ aliases: - &setup-tests source setup-for-tests.sh - ./server/run_unittests_coverage.sh - &cypress-test - name: run cypress tests + name: run cypress end-to-end tests caches: - pip - node @@ -62,6 +62,21 @@ aliases: - npm run build --prefix client - curl http://localhost:8000/beta-login - 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 name: run jest tests caches: @@ -108,6 +123,7 @@ pipelines: - step: *lint - step: *unittest-python - step: *cypress-test + - step: *frontend-test - step: *jest-test - step: *deploy-dev @@ -123,6 +139,7 @@ pipelines: - step: *lint - step: *unittest-python - step: *cypress-test + - step: *frontend-test - step: *jest-test - parallel: - step: *deploy-stage