This example is based on the React Redux example, running in Electron. It contains two sets of functional tests, one that uses Intern’s built-in WebDriver library, and one that uses Spectron. It also contains unit tests, but these are run in Node rather than Electron as Intern 4.x does not currently support running unit tests in Electron.
-
Install the JRE or JDK. This demo uses Selenium, which requires Java, to run WebDriver tests.
-
Install node modules
$ npm install
-
Build the example
$ npm run build
Unit tests (in Node) and functional tests
$ npm test
On Windows, run
$ npm test config=@windows
WebDriver tests using Spectron
$ npm test config=@spectron