minijasminenodewrap
Advanced tools
Comparing version
11
index.js
@@ -8,2 +8,3 @@ 'use strict'; | ||
var configFile = path.normalize(process.cwd() + '/jasmine-config.js'); | ||
var jasmineReporters = require('jasmine2-reporters'); | ||
@@ -35,4 +36,12 @@ var options; | ||
function execute () { | ||
function execute() { | ||
if (argv.reportType === 'junit') { | ||
var junitXmlReporter = new jasmineReporters.JUnitXmlReporter({ | ||
savePath: argv.savePath || '', | ||
filePrefix: argv.filePrefix || '' | ||
}); | ||
miniJasmineLib.addReporter(junitXmlReporter); | ||
} | ||
miniJasmineLib.executeSpecs(options); | ||
} |
{ | ||
"name": "minijasminenodewrap", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Wraps minijasminenode to allow globbing from options and the CLI", | ||
@@ -20,2 +20,16 @@ "main": "index.js", | ||
"author": "Joe Grund", | ||
"maintainers": [ | ||
{ | ||
"name": "Will Johnson", | ||
"email": "william.c1.johnson@gmail.com" | ||
}, | ||
{ | ||
"name": "Joe Grund", | ||
"email": "grundjoseph@gmail.com" | ||
}, | ||
{ | ||
"name": "Wayne Seymour", | ||
"email": "wayneseymour@gmail.com" | ||
} | ||
], | ||
"license": "MIT", | ||
@@ -26,4 +40,5 @@ "dependencies": { | ||
"multi-glob": "0.4.0", | ||
"yargs": "1.2.5" | ||
"yargs": "1.2.5", | ||
"jasmine2-reporters": "0.0.1" | ||
} | ||
} |
minijasminenodewrap | ||
=================== | ||
A simple wrapper around [minijasminenode2](https://github.com/juliemr/minijasminenode). | ||
A simple wrapper around [minijasminenode2](https://github.com/juliemr/minijasminenode). | ||
- used to allow globs from the CLI or within the config | ||
@@ -53,3 +53,3 @@ - includes a utility to easily generate code coverage using istanbul | ||
In addition to wrapping jasmine, this module wraps istanbul and allows you to easily generate code coverage for | ||
your project. | ||
your project. | ||
@@ -60,3 +60,11 @@ ```bash | ||
JUnit Reports | ||
============= | ||
Producing JUnit reports is simple. Simply make sure you pass the --reportType=junit argument. | ||
Example: | ||
```bash | ||
./node_modules/minijasminenodewrap/bin/mjnw --reportType=junit --savePath=$HOME/test_reports --filePrefix=junit-results.xml | ||
``` | ||
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
37749
64.2%19
18.75%37
27.59%69
13.11%5
25%1
Infinity%+ Added