vscode/test/integration/browser
Johannes Rieken feae5bf5d6
make sure errors are recreated when making LM requests (#216807)
* add integration tests for LanguageModelChat#sendRequest

* make sure errors are recreated when making LM requests

* disable test with a note for later

* fix remote integration tests
2024-06-24 09:50:48 +02:00
..
src make sure errors are recreated when making LM requests (#216807) 2024-06-24 09:50:48 +02:00
.gitignore
package.json chore: update to electron 29 (#209818) 2024-05-11 01:20:28 +09:00
README.md Fix supported markdown-lint violations in markdown files (#190750) 2023-08-24 08:37:25 +00:00
tsconfig.json update vscode-test-web (#201187) 2023-12-19 16:03:03 +01:00
yarn.lock chore: update to electron 29 (#209818) 2024-05-11 01:20:28 +09:00

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.