0.2.0 • Published 9 years ago

electron-jasmine v0.2.0

Weekly downloads
31
License
MIT
Repository
github
Last release
9 years ago

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-jasmine
electron-jasmine ./spec-directory

.

Running Your Electron App's specs

You can integrate it into your app with the TestApplication export.

var TestApplication = require('electron-jasmine').TestApplication
new TestApplication({specDirectory: 'spec'})

A practical example that makes your app accept a --test command line parameter:

var path = require('path')
var argv = require('yargs')
  .default('test', false)
  .argv

if (argv.test) {
  require('electron-compile').init()
  var TestApplication = require('electron-jasmine').TestApplication
  new TestApplication({specDirectory: 'spec'})
}
else {
  require('electron-compile').init()
  var Application = require('./src/browser/application')
  new Application
}
0.2.0

9 years ago

0.1.8

9 years ago

0.1.7

9 years ago

0.1.6

9 years ago

0.1.5

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago

0.0.1

9 years ago