minijasminenodewrap
Advanced tools
Comparing version
13
index.js
@@ -0,1 +1,2 @@ | ||
/* jshint node: true */ | ||
'use strict'; | ||
@@ -8,3 +9,3 @@ | ||
var configFile = path.normalize(process.cwd() + '/jasmine-config.js'); | ||
var jasmineReporters = require('jasmine-reporters'); | ||
var krustyJasmineReporter = require('krusty-jasmine-reporter'); | ||
@@ -38,7 +39,7 @@ var options; | ||
if (argv.reportType === 'junit') { | ||
var junitXmlReporter = new jasmineReporters.JUnitXmlReporter({ | ||
savePath: argv.savePath || '', | ||
filePrefix: argv.filePrefix || '' | ||
}); | ||
miniJasmineLib.addReporter(junitXmlReporter); | ||
options.JUnitReportSavePath = argv.JUnitReportSavePath || options.JUnitReportSavePath || './'; | ||
options.JUnitReportFilePrefix = argv.JUnitReportFilePrefix || options.JUnitReportFilePrefix || 'results'; | ||
options.JUnitReportSuiteName = argv.JUnitReportSuiteName || options.JUnitReportSuiteName || 'Tests'; | ||
options.JUnitReportPackageName = argv.JUnitReportPackageName || options.JUnitReportPackageName || 'Tests'; | ||
miniJasmineLib.addReporter(new krustyJasmineReporter.KrustyJasmineJUnitReporter(options)); | ||
} | ||
@@ -45,0 +46,0 @@ |
{ | ||
"name": "minijasminenodewrap", | ||
"version": "0.0.5", | ||
"version": "1.0.0", | ||
"description": "Wraps minijasminenode to allow globbing from options and the CLI", | ||
@@ -37,7 +37,7 @@ "main": "index.js", | ||
"istanbul": "0.2.12", | ||
"krusty-jasmine-reporter": "0.0.1", | ||
"minijasminenode2": "1.0.0", | ||
"multi-glob": "0.4.0", | ||
"yargs": "1.2.5", | ||
"jasmine-reporters": "2.0.0" | ||
"yargs": "1.2.5" | ||
} | ||
} |
@@ -11,3 +11,3 @@ minijasminenodewrap | ||
`npm install minijasminenodewrap --save` | ||
`npm install minijasminenodewrap --save-dev` | ||
@@ -23,3 +23,2 @@ Use | ||
module.exports = { | ||
{ | ||
// An array of filename globs, relative to current dir. | ||
@@ -26,0 +25,0 @@ specs: ['spec/**/*.js'], |
NPM Shrinkwrap
Supply chain riskPackage contains a shrinkwrap file. This may allow the package to bypass normal install procedures.
Found 1 instance in 1 package
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
358
867.57%1
-50%16778
-55.98%8
-57.89%68
-1.45%1
Infinity%1
Infinity%+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed