3.12.2 • Published 1 month ago

vscode-extension-tester-locators v3.12.2

Weekly downloads
3,033
License
Apache-2.0
Repository
github
Last release
1 month ago

Build Status

vscode-extension-tester

VSCode Extension Tester is a package designed to help you run UI tests for your VS Code extensions using selenium-webdriver.

The first part is to automate all the necessary setup steps to launch webdriver tests:

  • Download a test instance of VS Code
  • Download the appropriate version of ChromeDriver
  • Package and install your extension into the VS Code instance
  • Launch the VS Code instance using webdriver
  • Run your tests

The second part is to provide an extendable page object API for more convenient test writing.

Usage

Simply install it into your extension devDependencies to get started:

npm install --save-dev vscode-extension-tester

Make sure to check out the wiki for detailed instructions.

For the whole API reference, you can generate typedoc by running

npm run doc

The results can then be found in the 'docs' directory.

Migrating to 3.x

The vscode-extension-tester package still integrates the same way as in older versions, with one slight difference.

If you wish to use the native dialog handlers, you will need to install an additional module vscode-extension-tester-native. The appropriate classes will then still be exported from the main module to keep code compatibility.

One aim of 3.x is to provide a more convenient way of updating to new VS Code releases. The modular approach allows us to publish updates to packages like page objects or locators without updating the main module. If such an update occurs, you should get it on the next npm install in your project without making changes to your package.json. Unless your package-lock.json decides otherwise.

Requirements

Extension Tester runs with all its features on Linux and Windows OSes. MacOS support is limited, due to the title bar and context menus being native only, therefore unavailable for webdriver to handle.

In order to run the tests successfully you will need the following:

  • Nodejs 11 or newer

Building the native module also requires python and possibly a c/c++ compiler

  • GCC or similar for linux
  • MS Built Tools for windows
  • Xcode command line tools for macos

NOTE: Some Linux (CentOS based) users have reported their tests getting stuck on launch. This is likely due to a missing dependency of ChromeDriver that runs underneath. If such scenario occurs, we recommend installing the Chrome browser rpm, since it depends on all the required libraries.

Get Involved

If you'd like to help us get better, we appreciate it!

Check out our Contribution Guide on how to do that.

3.12.1

1 month ago

3.12.2

1 month ago

3.12.0

1 month ago

3.11.0

3 months ago

3.10.0

4 months ago

3.9.0

5 months ago

3.8.0

7 months ago

3.7.1

8 months ago

3.7.0

9 months ago

3.6.0

11 months ago

3.5.1

11 months ago

3.5.0

11 months ago

3.4.0

1 year ago

3.3.0

1 year ago

3.4.2

12 months ago

3.4.1

1 year ago

3.2.1

1 year ago

3.2.0

1 year ago

3.1.0

2 years ago

3.0.0

2 years ago

2.0.0

2 years ago

1.62.2

2 years ago

1.62.1

2 years ago

1.62.0

2 years ago

1.61.1

3 years ago

1.61.0

3 years ago

1.60.1

3 years ago

1.60.0

3 years ago

1.59.0

3 years ago

1.58.0

3 years ago

1.57.1

3 years ago

1.57.0

3 years ago

1.54.2

3 years ago

1.54.1

3 years ago

1.54.0

3 years ago

1.53.2

3 years ago

1.53.1

3 years ago

1.53.0

3 years ago

1.50.1

3 years ago

1.50.0

4 years ago

1.49.0

4 years ago

1.47.1

4 years ago

1.47.0

4 years ago

1.46.0

4 years ago

1.45.2

4 years ago

1.45.1

4 years ago

1.45.0

4 years ago

1.44.0

4 years ago

1.44.0-0

4 years ago