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 runs mocha tests in Electron browser - a browser that's also a Node runtime
browser-monkey interacts with web pages and asserts DOM
Clone this repositoty and
yarn install. Then:
yarn startstarts the app
yarn testruns tests in electron/node headlessly
yarn test --interactiveruns 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
Join our remote team and help us build amazing software. Check out our career opportunities.