azuredatastudio/test/integration/browser
Karl Burtram 30db6f6d0e
Reapply "Update to Electron v30"" (#25982)
* Revert "Revert "Update to Electron v30 (#25948)" (#25955)"

This reverts commit 8a7208671a.

* Bump node-sass resolution

* Update yarn.lock

* Update yarn..lock for remote
2024-10-21 11:28:40 -07:00
..
src Update license to MIT (#24799) 2023-10-30 11:47:31 -04:00
.gitignore
README.md Merge VS Code version 1.82 into Azure Data Studio (#24684) 2023-10-17 15:07:44 -07:00
package.json Reapply "Update to Electron v30"" (#25982) 2024-10-21 11:28:40 -07:00
tsconfig.json Merge vscode source through release 1.79.2 (#23482) 2023-06-27 15:26:51 -07:00
yarn.lock Reapply "Update to Electron v30"" (#25982) 2024-10-21 11:28:40 -07:00

README.md

Integration test

Compile

Make sure to run the following commands to compile and install dependencies:

yarn --cwd test/integration/browser
yarn --cwd test/integration/browser compile

Run (inside Electron)

scripts/test-integration.[sh|bat]

All integration tests run in an Electron instance. You can specify to run the tests against a real build by setting the environment variables INTEGRATION_TEST_ELECTRON_PATH and VSCODE_REMOTE_SERVER_PATH (if you want to include remote tests).

Run (inside browser)

scripts/test-web-integration.[sh|bat] --browser [chromium|webkit] [--debug]

All integration tests run in a browser instance as specified by the command line arguments.

Add the --debug flag to see a browser window with the tests running.

Note: you can enable verbose logging of playwright library by setting a DEBUG environment variable before running the tests (https://playwright.dev/docs/debug#verbose-api-logs)

Debug

All integration tests can be run and debugged from within VSCode (both Electron and Web) simply by selecting the related launch configuration and running them.