Electron Jasmine
Run your jasmine (2.3) specs in electron. You can:
- Run your electron app's specs
- Run specs for your node modules that need to use the DOM, or need electron-isms.
Running Standalone
npm install --save-dev electron-jasmineelectron-jasmine ./spec-directory
Running Your Electron App's specs
You can integrate it into your app with the TestApplication
export.
var TestApplication = TestApplicationspecDirectory: 'spec'
A practical example that makes your app accept a --test
command line parameter:
var path = var argv = argv if argvtest var TestApplication = TestApplication specDirectory: 'spec'else var Application =