4.1.1 • Published 9 days ago

vscode-uitests-tooling v4.1.1

Weekly downloads
823
License
Apache-2.0
Repository
github
Last release
9 days ago

Installation

Install vscode-uitests-tooling into your extension devDependencies:

npm install --save-dev vscode-uitests-tooling@latest

Local development

These are necessary steps for local contribution and writing tests with vscode-uitests-tooling package.

Build local changes

  1. Inside vscode-uitests-tooling project execute prepared script, which includes all necessary steps

    npm run dev
  2. Only for the first time - inside project where you are writing tests, you need to link local version of vscode-uitests-tooling package

    npm 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.

  1. Git clone vscode-uitests-tooling on same dir level as your project

    git clone https://github.com/djelinek/vscode-uitests-tooling.git
  2. Inside tests use only import { XYZ } from 'vscode-uitests-tooling' package to import all page-objects including vscode-extension-tester ones

  3. To 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.

  1. Remove ExTester devDependency

    npm uninstall vscode-extension-tester
  2. Install UI tests Utils for Camel Tooling package in version 3.0.0

    npm install -D vscode-uitests-tooling@3.0.0
  3. Replace all vscode-extension-tester imports by vscode-uitests-tooling

  4. 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.

4.1.1

9 days ago

4.1.0

1 month ago

4.0.12

2 months ago

4.0.11

2 months ago

4.0.10

3 months ago

4.0.9

4 months ago

4.0.8

5 months ago

3.0.1

11 months ago

4.0.5

9 months ago

4.0.4

9 months ago

4.0.7

7 months ago

4.0.6

8 months ago

4.0.1

11 months ago

4.0.0

11 months ago

4.0.3

10 months ago

4.0.2

11 months ago

3.0.0

1 year ago

2.3.4

1 year ago

2.3.5

1 year ago

2.3.3

2 years ago

2.3.2

2 years ago

2.3.1

2 years ago

2.2.1

2 years ago

2.2.0

3 years ago

2.1.0

3 years ago

2.0.2

3 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago