Skip to content

Commit

Permalink
add separate command for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Gartland committed Sep 13, 2023
1 parent 31b8780 commit a46f539
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 5 additions & 2 deletions web/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,11 @@ build-and-test-ci-e2e target:
export CYPRESS_CONNECT_ADDRESS="http://$CONNECT_IP:3939/connect/\#/login"
# install cypress
npx cypress install

npm run test:e2e:ci
if[ {{target}} ~= "windows"] then;
npm run test-win:2e2:ci
else
npm run test:e2e:ci
fi

# run unit tests one time
test-unit:
Expand Down
4 changes: 3 additions & 1 deletion web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@
"test:unit": "vitest",
"test:e2e:dev": "start-server-and-test dev http-get://localhost:9000 cypress:run",
"test:e2e:ci": "start-server-and-test --expect 401 'just ../start-agent-for-e2e' http-get://127.0.0.1:9000 cypress:run:ci",
"test-win:e2e:ci": "start-server-and-test --expect 401 'just ../start-agent-for-e2e' http-get://127.0.0.1:9000 cypress-win:run:ci",
"cypress:open": "cypress open",
"cypress:run": "cypress run",
"cypress:run:ci": "cypress run --env publishing-token=abc123,CYPRESS_CONNECT_ADDRESS=$CYPRESS_CONNECT_ADDRESS"
"cypress:run:ci": "cypress run --env publishing-token=abc123,CYPRESS_CONNECT_ADDRESS=$CYPRESS_CONNECT_ADDRESS",
"cypress-win:run:ci": "cypress run --env publishing-token=abc123,CYPRESS_CONNECT_ADDRESS=%CYPRESS_CONNECT_ADDRESS%"
},
"dependencies": {
"@quasar/extras": "^1.16.5",
Expand Down

0 comments on commit a46f539

Please sign in to comment.