Skip to content

Commit 0c0b550

Browse files
committed
create new npm scripts which avoids the setup-tests process
1 parent 85aad28 commit 0c0b550

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@
3030
"testE2E": "npm run testE2E -w packages/ --if-present",
3131
"setupUI": "cd packages/amazonq && npm run package 2>&1 | grep -o 'VSIX Version: [^ ]*' | cut -d' ' -f3 | xargs -I{} bash -c 'cd ../../ && ./node_modules/.bin/extest install-vsix --vsix_file amazon-q-vscode-{}.vsix'",
3232
"testUI": "npm run testCompile && node_modules/.bin/extest run-tests packages/amazonq/dist/test/e2e/amazonq/VET.test.js -u",
33+
"test:ui:prepare": "./node_modules/.bin/extest get-vscode -s ~/.vscode-test-resources -n && extest get-chromedriver -s ~/.vscode-test-resources -n",
34+
"test:ui:install": "cd packages/amazonq && npm run package 2>&1 | grep -o 'VSIX Version: [^ ]*' | cut -d' ' -f3 | xargs -I{} bash -c 'cd ../../ && ./node_modules/.bin/extest install-vsix -f amazon-q-vscode-{}.vsix -e packages/amazonq/test/e2e/amazonq/resources -s ~/.vscode-test-resources'",
35+
"test:ui:run": "npm run testCompile && ./node_modules/.bin/extest run-tests -s ~/.vscode-test-resources -e packages/amazonq/test/e2e/amazonq/resources packages/amazonq/dist/test/e2e/amazonq/VET.test.js",
36+
"test:ui": "npm run test:ui:prepare && npm run test:ui:install && npm run test:ui:run",
3337
"testInteg": "npm run testInteg -w packages/ --if-present",
3438
"package": "npm run package -w packages/toolkit -w packages/amazonq",
3539
"newChange": "echo 'Must specify subproject/workspace with -w packages/<subproject>' && false",

0 commit comments

Comments
 (0)