@theia-extension-tester/browser-runner
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

browser-runner

Module extending @theia-extension-tester/mocha-runner functionality. It provides quick start to Eclipse Theia testing and adds new Eclipse Theia specific utilities which are commonly used when testing. Currently only interaction through web interface is supported. Electron interface has not been implemented yet.

Features

The runner as other runners is responsible for preparing workspace. Authentication is supported as well. Last significant features are open folder and custom Url query utility.

Usage

Install via npm

npm install @theia-extension-tester/browser-runner

Install via yarn

yarn add @theia-extension-tester/browser-runner

Create new runner object.

const runner = new TheiaBrowserRunner(browser, {
    mochaOptions?: Mocha.MochaOptions,
    openFolder?: string;
    query?: { [key: string]: string };
    theiaUrl: string;
}, authenticator /* optional */);

Then it is possible to run tests in provided browser.

await runner.runTests([
    "out/tests/Input.test.js",
    "out/tests/TextEditor.test.js"
]);

Package Sidebar

Install

npm i @theia-extension-tester/browser-runner

Weekly Downloads

2

Version

0.1.2

License

Apache-2.0

Unpacked Size

19.5 kB

Total Files

9

Last publish

Collaborators

  • mlorinc