gulp-jasmine-phantom
Advanced tools
Comparing version 1.1.3 to 1.2.0
21
index.js
@@ -21,9 +21,3 @@ 'use strict' | ||
var gulpOptions = {}, | ||
jasmineCss = path.join(__dirname, '/vendor/jasmine-2.0/jasmine.css'), | ||
jasmineJs = [ | ||
path.join(__dirname, '/vendor/jasmine-2.0/jasmine.js'), | ||
path.join(__dirname, '/vendor/jasmine-2.0/jasmine-html.js'), | ||
path.join(__dirname, '/vendor/jasmine-2.0/console.js'), | ||
path.join(__dirname, '/vendor/jasmine-2.0/boot.js') | ||
], | ||
jasmineCss, jasmineJs, | ||
vendorJs = [], | ||
@@ -33,2 +27,14 @@ specHtml = path.join(__dirname, '/lib/specRunner.html'), | ||
function configJasmine(version) { | ||
version = version || '2.0'; | ||
jasmineCss = path.join(__dirname, '/vendor/jasmine-' + version + '/jasmine.css'); | ||
jasmineJs = [ | ||
path.join(__dirname, '/vendor/jasmine-' + version + '/jasmine.js'), | ||
path.join(__dirname, '/vendor/jasmine-' + version + '/jasmine-html.js'), | ||
path.join(__dirname, '/vendor/jasmine-' + version + '/console.js'), | ||
path.join(__dirname, '/vendor/jasmine-' + version + '/boot.js') | ||
]; | ||
} | ||
/** | ||
@@ -139,2 +145,3 @@ * Removes the specRunner.html file | ||
configJasmine(gulpOptions.jasmineVersion); | ||
@@ -141,0 +148,0 @@ if(!!gulpOptions.integration) { |
@@ -41,3 +41,3 @@ var noopTimer = { | ||
} | ||
printNewline(); | ||
@@ -53,7 +53,7 @@ | ||
} | ||
if(failureCount) { | ||
specCounts += ', ' + colored('red', failureCount + ' ' + plural('failure', failureCount)); | ||
} | ||
if (pendingCount) { | ||
@@ -67,3 +67,3 @@ specCounts += ', ' + colored('yellow', pendingCount + ' pending '); | ||
} | ||
var seconds = timer.elapsed() / 1000; | ||
@@ -77,3 +77,3 @@ print('Finished in ' + seconds + ' ' + plural('second', seconds)); | ||
print(indent(suite.fullName, suiteIndentation)); | ||
suiteIndentation += 2; | ||
suiteIndentation += 2; | ||
}; | ||
@@ -90,3 +90,3 @@ | ||
pendingCount++; | ||
print(indent(colored('yellow', '* ' + result.fullName), suiteIndentation)); | ||
print(indent(colored('yellow', '* ' + result.description), suiteIndentation)); | ||
return; | ||
@@ -96,3 +96,3 @@ } | ||
if (result.status == 'passed') { | ||
print(indent(colored('green', '\u2714 ' + result.fullName), suiteIndentation)); | ||
print(indent(colored('green', '\u2714 ' + result.description), suiteIndentation)); | ||
return; | ||
@@ -104,3 +104,3 @@ } | ||
failedSpecs.push(result); | ||
print(indent(colored('red', '\u2716 ' + result.fullName), suiteIndentation)); | ||
print(indent(colored('red', '\u2716 ' + result.description), suiteIndentation)); | ||
} | ||
@@ -107,0 +107,0 @@ }; |
{ | ||
"name": "gulp-jasmine-phantom", | ||
"version": "1.1.3", | ||
"version": "1.2.0", | ||
"description": "Jasmine 2.0 suite runner, optionally with PhantomJS", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -76,2 +76,8 @@ gulp-jasmine-phantom | ||
#### jasmineVersion | ||
Type: `string` <br /> | ||
Default: '2.0' | ||
Specifies the version of Jasmine you want to run. Possible options are in the `vendor/` folder. Just specify what `2.x` minor release you want. | ||
#### integration | ||
@@ -118,7 +124,7 @@ Type: `boolean` <br /> | ||
A list of vendor scripts to import into the HTML runner, either as file | ||
globs (e.g. `"**/*.js"`) or fully-qualified URLs (e.g. | ||
A list of vendor scripts to import into the HTML runner, either as file | ||
globs (e.g. `"**/*.js"`) or fully-qualified URLs (e.g. | ||
`"http://my.cdn.com/jquery.js"`). | ||
This option accepts either a single string or an array of strings (e.g. | ||
This option accepts either a single string or an array of strings (e.g. | ||
`["test/*.js", "http://my.cdn.com/underscore.js"]`). | ||
@@ -125,0 +131,0 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
503731
29
12853
135
3