Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
This is a Cordova Hook that runs your Jasmine tests automatically. Best to run after 02_jshint.js in the before_prepare folder
#!/usr/bin/env node
var path = require('path');
var Command = require('../../node_modules/jasmine/lib/command.js');
var Jasmine = require('../../node_modules/jasmine/lib/jasmine.js');
var thePath = path.join( path.resolve(), 'www');
var jasmine = new Jasmine({ projectBaseDir: thePath });
var examplesDir = path.join(__dirname, '..', 'node_modules', 'jasmine-core', 'lib', 'jasmine-core', 'example', 'node_example');
var command = new Command(thePath);
console.log('Running Jasmine Tests');, [] );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.