Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/featurist/full-stack-js-testing-demo
javascript web app full stack browser testing demo
https://github.com/featurist/full-stack-js-testing-demo
electron javascript mocha nodejs
Last synced: about 2 months ago
JSON representation
javascript web app full stack browser testing demo
- Host: GitHub
- URL: https://github.com/featurist/full-stack-js-testing-demo
- Owner: featurist
- License: mit
- Created: 2016-10-06T17:31:04.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T21:41:39.000Z (about 2 years ago)
- Last Synced: 2024-05-01T23:54:33.890Z (9 months ago)
- Topics: electron, javascript, mocha, nodejs
- Language: JavaScript
- Homepage:
- Size: 2.7 MB
- Stars: 18
- Watchers: 4
- Forks: 3
- Open Issues: 26
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Full stack (spa + express backend + db) integration tests that run in a single browser process.
--------As a result, it is fast and debuggable.
This is made possible by the following tech:
- [electron-mocha](https://github.com/jprichardson/electron-mocha) runs mocha tests in Electron browser - a browser that's also a Node runtime
- [browser-monkey](https://github.com/featurist/browser-monkey) interacts with web pages and asserts DOM
Usage
--------Clone this repositoty and `yarn install`. Then:
- `yarn start` starts the app
- `yarn test` runs tests in electron/node headlessly
- `yarn test --interactive` runs tests and opens up browser window
For comparison, there is a selenium webdriver version of the same tests. Can be run like this:
- `yarn test-wd` - headless
- `GUI=1 yarn test-wd` - with browser window
## We're Hiring!
Join our remote team and help us build amazing software. Check out [our career opportunities](https://www.featurist.co.uk/careers/).