https://github.com/mdb/electron-app-testing
A reference implementation demonstrating how to write automated tests against an Electron application
https://github.com/mdb/electron-app-testing
Last synced: 29 days ago
JSON representation
A reference implementation demonstrating how to write automated tests against an Electron application
- Host: GitHub
- URL: https://github.com/mdb/electron-app-testing
- Owner: mdb
- Created: 2016-08-01T11:41:59.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-08-01T12:11:25.000Z (almost 10 years ago)
- Last Synced: 2025-01-14T16:36:45.634Z (over 1 year ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://travis-ci.org/mdb/electron-app-testing)
# electron-app-testing
A simple reference application demonstrating how to execute [spectron](http://electron.atom.io/spectron) functional
tests against an [electron](http://electron.atom.io) application build.
`electron-app-testing` also demonstrates a technique for [TravisCI CI configuration](https://github.com/mdb/electron-app-testing/blob/master/.travis.yml)
that exercises build/test functionality on both MacOS and Linux.
## Run the application
```
npm install
npm start
```
## Build the application for various OS/architectures
This creates builds for various OS/architectures to a `build` directory.
```
npm run build
```
## Execute electron tests against a build
Note that this detects the current OS/architecture and executes tests
against the corresponding build.
```
npm test
```