grunt-jasmine-node
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -0,1 +1,4 @@ | ||
# 0.3.1 | ||
- Merged PR #62 to fix junitreport hard-coded options | ||
# 0.2.1 | ||
@@ -2,0 +5,0 @@ - multi-task configuration support added |
{ | ||
"name" : "grunt-jasmine-node", | ||
"description" : "Grunt task for running jasmine-node", | ||
"version" : "0.3.0", | ||
"version" : "0.3.1", | ||
"homepage" : "https://github.com/jasmine-contrib/grunt-jasmine-node", | ||
@@ -6,0 +6,0 @@ "author" : { |
module.exports = function (grunt) { | ||
'use strict'; | ||
grunt.registerMultiTask("jasmine_node", "Runs jasmine-node.", function() { | ||
@@ -28,2 +28,3 @@ var jasmine = require('jasmine-node'); | ||
var growl = grunt.config("jasmine_node.growl") || false; | ||
var junitreport = grunt.config("jasmine_node.junitreport"); | ||
@@ -37,10 +38,2 @@ var isVerbose = grunt.config("jasmine_node.verbose") || true; | ||
var junitreport = { | ||
report: false, | ||
savePath : "./reports/", | ||
useDotNotation: true, | ||
consolidate: true | ||
}; | ||
var onComplete = function(runner, log) { | ||
@@ -61,4 +54,4 @@ var exitCode; | ||
}; | ||
var options = { | ||
@@ -79,6 +72,6 @@ match: match, | ||
}; | ||
var regExpSpec = new RegExp(options.match + (options.matchall ? "" : options.specNameMatcher + "\\.") + "(" + options.extensions + ")$", 'i'); | ||
options.regExpSpec = regExpSpec; | ||
options.specFolders = grunt.util._.union(options.specFolders, this.filesSrc); | ||
@@ -93,8 +86,8 @@ if (options.projectRoot) { | ||
options.extensions = 'js|coffee|litcoffee'; | ||
require('coffee-script'); | ||
require('coffee-script'); | ||
} | ||
if (captureExceptions) { | ||
@@ -126,13 +119,13 @@ // Grunt will kill the process when it handles an uncaughtException, so | ||
var jasmineOptions = { | ||
specFolders: options.specFolders, | ||
onComplete: onComplete, | ||
isVerbose: grunt.option('verbose')?true:options.verbose, | ||
showColors: options.showColors, | ||
teamcity: options.teamcity, | ||
useRequireJs: options.useRequireJs, | ||
regExpSpec: regExpSpec, | ||
junitreport: options.jUnit, | ||
includeStackTrace: options.includeStackTrace, | ||
coffee: options.coffee, | ||
growl: options.growl | ||
specFolders: options.specFolders, | ||
onComplete: onComplete, | ||
isVerbose: grunt.option('verbose')?true:options.verbose, | ||
showColors: options.showColors, | ||
teamcity: options.teamcity, | ||
useRequireJs: options.useRequireJs, | ||
regExpSpec: regExpSpec, | ||
junitreport: options.junitreport, | ||
includeStackTrace: options.includeStackTrace, | ||
coffee: options.coffee, | ||
growl: options.growl | ||
}; | ||
@@ -139,0 +132,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12056
192