vscode-uitests-tooling v4.1.9
Installation
Install vscode-uitests-tooling into your extension devDependencies:
npm install --save-dev vscode-uitests-tooling@latestLocal development
These are necessary steps for local contribution and writing tests with vscode-uitests-tooling package.
Build local changes
Inside
vscode-uitests-toolingproject execute prepared script, which includes all necessary stepsnpm run devOnly for the first time - inside project where you are writing tests, you need to link local version of
vscode-uitests-toolingpackagenpm link vscode-uitests-tooling
Example
Example how to use this library in daily work in some project where you want to write UI tests with usage of vscode-extension-tester testing framework and vscode-uitests-tooling utils package.
Git clone
vscode-uitests-toolingon same dir level as your projectgit clone https://github.com/djelinek/vscode-uitests-tooling.gitInside tests use only
import { XYZ } from 'vscode-uitests-tooling'package to import all page-objects includingvscode-extension-testeronesTo easily build made utils changes and run tests in one step you can use
npm --prefix ../vscode-uitests-tooling run dev && npm run ui-test
Migration to 3.0.0
In this version we are trying to simplify whole process of maintaining utils in one place and writing tests in another. To enable this approach we are now re-exporting whole vscode-extension-tester API which means this dependency is not required to be installed in destination where the tests are written because it will be provided as transitive dependency.
It also means that vscode-extension-tester version upgrades can be done only in one place and it will be propagated to all dependant proejcts.
To use vscode-uitests-tooling package in version 3.0.0 you need to change just few easy things and other should stay same.
Remove
ExTesterdevDependencynpm uninstall vscode-extension-testerInstall
UI tests Utils for Camel Toolingpackage in version 3.0.0npm install -D vscode-uitests-tooling@3.0.0Replace all
vscode-extension-testerimports byvscode-uitests-tooling- Run tests!
Contribution
Did you found some bug? Are you missing some feature? Please feel free to open new Issue or Create PR to our GitHub repository.
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago