Archived
1
0
This repository has been archived on 2024-09-09. You can view files and clone it, but cannot push or open issues or pull requests.
code-server/test/integration/browser
Joe Previte be3e823608 Squashed 'lib/vscode/' content from commit e5a624b788
git-subtree-dir: lib/vscode
git-subtree-split: e5a624b788d92b8d34d1392e4c4d9789406efe8f
2020-12-15 15:52:33 -07:00
..
src Squashed 'lib/vscode/' content from commit e5a624b788 2020-12-15 15:52:33 -07:00
.gitignore Squashed 'lib/vscode/' content from commit e5a624b788 2020-12-15 15:52:33 -07:00
package.json Squashed 'lib/vscode/' content from commit e5a624b788 2020-12-15 15:52:33 -07:00
README.md Squashed 'lib/vscode/' content from commit e5a624b788 2020-12-15 15:52:33 -07:00
tsconfig.json Squashed 'lib/vscode/' content from commit e5a624b788 2020-12-15 15:52:33 -07:00
yarn.lock Squashed 'lib/vscode/' content from commit e5a624b788 2020-12-15 15:52:33 -07:00

Integration test

Compile

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

yarn --cwd test/integration/browser

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)

resources/server/test/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.

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.