vscode/test/integration/browser
Benjamin Pasero 2ddc1e4fc5
Produce logs during test runs (integration, smoke) and publish as artefacts (#126065)
* first cut upload log files from integration test runs

* always publish log files

* move logs into integration-tests folder

* also produce logs for smoke tests

* store remote log files

* wire in logspath arg properly

* always publish logs

* enable logs for browser based smoke tests

* log only in verbose
2021-06-15 08:33:26 +02:00
..
src Produce logs during test runs (integration, smoke) and publish as artefacts (#126065) 2021-06-15 08:33:26 +02:00
.gitignore
package.json chore: bump node@14.x in devDependencies (#122905) 2021-05-04 10:04:13 +02:00
README.md Revert "docs for #91532" 2020-02-26 16:30:06 +01:00
tsconfig.json
yarn.lock chore: bump node@14.x in devDependencies (#122905) 2021-05-04 10:04:13 +02: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.