You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`CODE_VERSION`| Version of VS Code to run the tests against (e.g. `0.10.10`) |
23
-
|`CODE_DOWNLOAD_URL`| Full URL of a VS Code drop to use for running tests against |
24
-
|`CODE_TESTS_PATH`| Location of the tests to execute (default is `process.cwd()/out/test` or `process.cwd()/test`) |
25
-
|`CODE_EXTENSIONS_PATH`| Location of the extensions to load (default is `process.cwd()`) |
26
-
|`CODE_TESTS_WORKSPACE`| Location of a workspace to open for the test instance (default is CODE_TESTS_PATH) |
27
-
|`CODE_LOCALE`| Display language to use when running the tests (default is English) |
28
-
|`CODE_DISABLE_EXTENSIONS`| Disable all other extensions except the one that is being tested |
29
-
|`CODE_TESTS_DATA_DIR`| Allows to specify the user-data-dir for the tests to use and thus enables to run multiple tests at the same time |
12
+
Extension tests can be run on CI services. The `vscode-test` repository itself contains a sample extension that is tested on Azure Devops Pipelines. You can check out the [build pipeline](https://dev.azure.com/vscode/VSCode/_build?definitionId=14) or jump directly to the [build definition yaml file](https://github.com/microsoft/vscode-test/blob/master/sample/azure-pipelines.yml).
You can create free projects on [Azure DevOps](https://azure.microsoft.com/services/devops/). This gives you source code hosting, planning boards, building and testing infrastructure, and more. On top of that, you get [10 free parallel jobs](https://azure.microsoft.com/services/devops/pipelines/) for building your projects across all 3 major platforms: Windows, macOS and Linux.
36
19
37
-
After registering and creating your new project, simply add the following `build.yml` to the root of your extension's repository:
20
+
After registering and creating your new project, simply add the following `azure-pipelines.yml` to the root of your extension's repository. Other than the xvfb setup for Linux, the definition is straight-forward:
# vscode-test has its extension located at /sample
55
+
cd sample
56
+
yarn && yarn compile && yarn test
57
+
displayName: Run Tests
58
+
env:
59
+
DISPLAY: :10
111
60
```
112
61
113
-
Next [create a new Pipeline](https://docs.microsoft.com/azure/devops/pipelines/get-started-yaml?view=vsts#get-your-first-build) in your DevOps project and point it to the `build.yml` file. Trigger a build and voilà:
62
+
Next [create a new Pipeline](https://docs.microsoft.com/azure/devops/pipelines/get-started-yaml?view=vsts#get-your-first-build) in your DevOps project and point it to the `azure-pipelines.yml` file. Trigger a build and voilà:
0 commit comments