Giter VIP home page Giter VIP logo

mlorinc / theia-extension-tester Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 506 KB

Theia Extension Tester is TypeScript package for testing graphical user interfaces of Theia and Visual Studio Code extensions. Built on Selenium WebDriver library and inspired by VSCode Extension Tester package to make testing easy and migration from VSCode Extension Tester seamless.

License: Apache License 2.0

TypeScript 98.65% JavaScript 0.89% Java 0.46%

theia-extension-tester's Introduction

Theia Extension Tester

Theia Extension Tester is package designed for testing graphical user interfaces of Theia/VS Code extensions integrated to Eclipse Che and other Eclipse Theia based editors.

Writing new user interface tests consists of using page objects which represent specific part of the editor user interface. Page objects are designed to follow VSCode Extension Tester page objects as close as possible. Therefore existing user interface tests for VS Code extensions can be reused fo Eclipse Theia based editors.

Installation process

The fastest way to get started is to install starter package theia-extension-tester through npm or yarn.

npm

To install package with npm execute npm install theia-extension-tester --save-dev.

yarn

To install package using yarn execute yarn add theia-extension-tester --dev.

The project is using Selenium WebDriver library underneath. The library requires user to download specific Selenium WebDriver from web browser vendor. This step has not been automatized yet so it must be completed manually. Some of the most used Selenium WebDriver can be found in the following table:

Browser name Location
Chromium https://chromedriver.chromium.org/
Firefox https://github.com/mozilla/geckodriver/releases
Microsoft Edge https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/

After downloading and extracting any Selenium WebDriver make it executable by executing chmod 755 <webdriver binary> in command line. The driver does not have to be placed in PATH variable.

Getting started

After successful installation of the package and Selenium WebDriver minor configuration steps are required to be performed which depend on selected editor:

Some features and page objects are not fully compatible in term of user interface with Eclipse Theia based editors. Also some tests may libraries such as fs, child_process and other system specific libraries. It is advised not to use system libraries when testing VS Code extensions to make tests less dependent on system / editor.

Versioning

This project follows Semantic Versioning 2.0.0 but until the project reaches 100% compatibility with VSCode Extension Tester it will stay on 0.y.z and every change should be taken as breaking.

theia-extension-tester's People

Contributors

mlorinc avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.