JUnit reporter not loaded when not used
This commit is contained in:
parent
f9c79241ae
commit
6a1e1439e0
|
@ -71,11 +71,12 @@ function backendUnitTest() {
|
|||
];
|
||||
|
||||
const jasmine = require('gulp-jasmine');
|
||||
const reporters = require('jasmine-reporters');
|
||||
let options = {errorOnFail: false};
|
||||
|
||||
if (argv.junit || argv.j)
|
||||
if (argv.junit || argv.j) {
|
||||
const reporters = require('jasmine-reporters');
|
||||
options.reporter = new reporters.JUnitXmlReporter();
|
||||
}
|
||||
|
||||
return gulp.src(specFiles)
|
||||
.pipe(jasmine(options))
|
||||
|
|
Loading…
Reference in New Issue