All Projects → pumano → spectron-typescript-starter

pumano / spectron-typescript-starter

Licence: MIT License
Spectron TypeScript Starter for e2e testing electron applications

Programming Languages

typescript
32286 projects
HTML
75241 projects

Projects that are alternatives of or similar to spectron-typescript-starter

Javascript Testing Best Practices
📗🌐 🚢 Comprehensive and exhaustive JavaScript & Node.js testing best practices (August 2021)
Stars: ✭ 13,976 (+93073.33%)
Mutual labels:  mocha, chai, e2e
javascript-unit-testing-with-mocha
Unit test using Mocha and Chai
Stars: ✭ 104 (+593.33%)
Mutual labels:  mocha, chai
BotBlock.org
BotBlock - The List of Discord Bot Lists and Services
Stars: ✭ 29 (+93.33%)
Mutual labels:  mocha, chai
Telegraf-Test
Telegraf Test - Simple Test ToolKit of Telegram Bots
Stars: ✭ 22 (+46.67%)
Mutual labels:  mocha, tests
template-server-nodejs
No description or website provided.
Stars: ✭ 20 (+33.33%)
Mutual labels:  mocha, chai
api-skel
Webpack + Typescript + Express + Jest + Chai + Gulp
Stars: ✭ 18 (+20%)
Mutual labels:  mocha, chai
license-key-gen
Generate license keys for given company details
Stars: ✭ 48 (+220%)
Mutual labels:  mocha, chai
playwright-test
Run unit tests with several runners or benchmark inside real browsers with playwright.
Stars: ✭ 81 (+440%)
Mutual labels:  mocha, tests
earl
☕ Ergonomic, modern and type-safe assertion library for TypeScript
Stars: ✭ 217 (+1346.67%)
Mutual labels:  mocha, chai
qa-automation-base
There are basic projects for automation frameworks based on Kotlin/Java and TypeScript for the backend, frontend, and mobile.
Stars: ✭ 45 (+200%)
Mutual labels:  mocha, chai
rest.api.test
Simple REST API Test Framework
Stars: ✭ 47 (+213.33%)
Mutual labels:  mocha, chai
alexa-skill-boilerplate
An easy to use Amazon Alexa Skill Boilerplate for fast skill creation
Stars: ✭ 54 (+260%)
Mutual labels:  mocha, chai
react-testing-mocha-chai-enzyme
A solid test setup for React components with Mocha, Chai, Sinon, Enzyme in a Webpack/Babel application.
Stars: ✭ 48 (+220%)
Mutual labels:  mocha, chai
aria-vue
Testing tools for Vue components
Stars: ✭ 21 (+40%)
Mutual labels:  mocha, chai
minimal-hapi-react-webpack
Minimal Hapi + React + Webpack + HMR (hot module reloading) Sandbox
Stars: ✭ 55 (+266.67%)
Mutual labels:  mocha, chai
nodejs-integration-testing
Integration testing of a Node.js / Express.js / Sequelize app
Stars: ✭ 23 (+53.33%)
Mutual labels:  mocha, chai
cucumber-steps
🥒 Quick start for testing with Cucumber.js
Stars: ✭ 15 (+0%)
Mutual labels:  mocha, chai
mocha-wrap
Fluent pluggable interface for easily wrapping `describe` and `it` blocks in Mocha tests.
Stars: ✭ 54 (+260%)
Mutual labels:  mocha, tests
js-stack-from-scratch
🌺 Russian translation of "JavaScript Stack from Scratch" from the React-Theming developers https://github.com/sm-react/react-theming
Stars: ✭ 394 (+2526.67%)
Mutual labels:  mocha, chai
react-redux-immutable-webpack-ssr-starter
React + React-Router 4 + Redux + ImmutableJS + Bootstrap + webpack 3 with with Server side rendering, Hot Reload and redux-devtools STARTER
Stars: ✭ 21 (+40%)
Mutual labels:  mocha, chai

spectron-typescript-starter

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

Project sctructure

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

Preconditions

install dependencies

$ npm install

build electron project

$ npm run build

Run tests

run e2e tests with mocha reporter

$ npm run test:e2e

Allure

preconditions

your need to install allure-commandline for using allure:

$ npm install -g allure-commandline

run tests with allure reporter

$ npm run test:e2e:allure

generate allure reports

$ npm run report:generate

generate allure reports and open in browser

$ npm run report:generate:open

clean allure reports (delete allure-report/allure-results)

$ npm run report:clean

Other

start electron project

$ npm start

run typescript in watch mode (recompile on file changes)

$ npm run watch

Decorators

@log method decorator can be used for logging purposes

License

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].