@theia-extension-tester/mocha-runner
v0.1.2
Published
Use Mocha to run theia-extension-tester UI tests.
Downloads
9
Maintainers
Readme
mocha-runner
Module for launching mocha tests.
Usage
Install via npm
npm install @theia-extension-tester/mocha-runner
Install via yarn
yarn add @theia-extension-tester/mocha-runner
Create new MochaRunner object. For browser creation please refer to @theia-extension-tester/base-browser.
const runner = new MochaRunner(browser, mochaOptions, authenticator);
Then it is possible to run tests in provided browser.
await runner.runTests([
"out/tests/Input.test.js",
"out/tests/TextEditor.test.js"
]);