Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
reporter = new reporters.JUnitXmlReporter(ropts.junit);
reporter.name = 'JUnit XML Reporter';
addReporter(reporter);
}
if (ropts.nunit) {
reporter = new reporters.NUnitXmlReporter(ropts.nunit);
reporter.name = 'NUnit XML Reporter';
addReporter(reporter);
}
// We will not allow reporters producing command-line output to run at
// the same time, to prevent puzzled outputs.
var conflict = Boolean(ropts.console);
if (!conflict && ropts.terminal) {
conflict = true;
reporter = new reporters.TerminalReporter(ropts.terminal);
reporter.name = 'Terminal Reporter';
addReporter(reporter);
}
if (!conflict && ropts.teamcity) {
conflict = true;
reporter = new reporters.TeamCityReporter(); // no options to set
reporter.name = 'TeamCity Reporter';
addReporter(reporter);
}
if (!conflict && ropts.tap) {
conflict = true;
reporter = new reporters.TapReporter(); // no options to set
reporter.name = 'TAP Reporter';
addReporter(reporter);
}
function jasmineTestTask() {
var terminalReporter = new jasmineReporters.TerminalReporter({
verbosity: 3,
color: true,
showStack: true
});
var junitReporter = new jasmineReporters.JUnitXmlReporter({
savePath: 'target/surefire-reports',
consolidateAll: true,
filePrefix: 'JasmineReport'
});
_startTestWebServer();
gulp.src(testSpecs)
.pipe(jasmine({reporter: [terminalReporter, junitReporter, {
jasmineDone: function () {
gulp.emit('testing_completed');
}
'nightmare/helpers/connectionsDSL.js',
'nightmare/helpers/LibraryDSL.js'
]
}
let suite = 'nightmare/paths/*.spec.js';
if(process.argv[2] && process.argv[2] !== '--show') {
suite = 'nightmare/paths/' + process.argv[2] + '.spec.js';
}
jasmineConfig.spec_files.push(suite);
jasmine.loadConfig(jasmineConfig);
jasmine.clearReporters();
jasmine.addReporter(new reporters.TerminalReporter({
verbosity: 3,
color: true,
showStack: true
}));
jasmine.DEFAULT_TIMEOUT_INTERVAL = 15000;
mongoose.connect(dbConfig.development, {useMongoClient: true});
var db = mongoose.connection;
db.once('open', function () {
return exec('cd nightmare/fixtures;./restore.sh', (error) => {
if (error) {
console.log(error);
return;
}
translations.processSystemKeys(systemKeys)
gulp.task(task.name, () => {
console.log(task.src);
gulp.src(task.src)
.pipe(jasmine({
reporter: new jasmineReporters.TerminalReporter({
verbosity: 3,
color: true,
showStack: true,
}),
}));
});
});
var reporters = require('jasmine-reporters');
jasmine.getEnv().addReporter(new reporters.TerminalReporter({ verbosity: 3, color: true }));
var chai = require('chai');
global.assert = chai.assert;
gulp.task("test:unit", ["pre-test"], () => {
return gulp.src("./tests/**/*.js")
.pipe(plugins.jasmine({
reporter: new reporters.TerminalReporter()
}))
.pipe(plugins.istanbul.writeReports())
.pipe(plugins.istanbul.enforceThresholds({ thresholds: { global: 100 } }));
});
gulp.task("test:integration:node", ["build"], () => {
return gulp.src("./integrationTests/node/**/*.js")
.pipe(plugins.jasmine({
reporter: new reporters.TerminalReporter()
}));
}
);
gulp.task('test', function(){
return gulp.src('test/**/*Spec.{js,coffee}')
.pipe(jasmine({
reporter: new reporters.TerminalReporter()
}));
});
onPrepare() {
var jasmineReporters = require('jasmine-reporters');
jasmine.getEnv().addReporter(new jasmineReporters.TerminalReporter({
verbosity: 3,
color: true,
showStack: true
}));
}
};