Spectron TypeScript Starter for e2e testing electron applications.
Supports:
- electron 3+
- Typescript 2.9.x
- Spectron 4.x (webdriverio under the hood)
Starter use:
async
/await
page objects
pattern
src
-- folder for your project's electron source code (contains electron typescript starter: https://github.com/electron/electron-quick-start-typescript)
test
-- folder for tests
test/helpers
-- helpers
test/po
-- page objects
test/specs
-- your specs (tests)
mocha.opts
-- mocha config for test execution
mocha-allure.opts
-- mocha config for test execution with allure reporter
$ npm install
$ npm run build
$ npm run test:e2e
your need to install allure-commandline
for using allure:
$ npm install -g allure-commandline
$ npm run test:e2e:allure
$ npm run report:generate
$ npm run report:generate:open
$ npm run report:clean
$ npm start
$ npm run watch
@log
method decorator can be used for logging purposes
This project contains electron typescript starter application (index.html
/ src/*
)
https://github.com/electron/electron-quick-start-typescript under CC0 1.0 (Public Domain)
Other code under MIT license.