How to use the jasmine-reporters.TerminalReporter function in jasmine-reporters

To help you get started, we’ve selected a few jasmine-reporters examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github onury / grunt-jasmine-nodejs / tasks / jasmine.task.js View on Github external
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);
        }
github tfennelly / jenkins-js-builder / internal / tests.js View on Github external
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');
                }
github huridocs / uwazi / nightmare / nightmare_tests.js View on Github external
'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)
github fourlabsldn / fl-form-builder / gulp-tasks / test-headless.js View on Github external
gulp.task(task.name, () => {
    console.log(task.src);
    gulp.src(task.src)
    .pipe(jasmine({
      reporter: new jasmineReporters.TerminalReporter({
        verbosity: 3,
        color: true,
        showStack: true,
      }),
    }));
  });
});
github ably / ably-js / spec / support / node_helper.js View on Github external
var reporters = require('jasmine-reporters');
jasmine.getEnv().addReporter(new reporters.TerminalReporter({ verbosity: 3, color: true }));

var chai = require('chai');
global.assert = chai.assert;
github BenjaminVanRyseghem / numbro / bower_components / numbro / gulpfile.js View on Github external
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 } }));
});
github BenjaminVanRyseghem / numbro / gulpfile.js View on Github external
gulp.task("test:integration:node", ["build"], () => {
        return gulp.src("./integrationTests/node/**/*.js")
            .pipe(plugins.jasmine({
                reporter: new reporters.TerminalReporter()
            }));
    }
);
github HoS0 / SwaggerMerge / gulpfile.js View on Github external
gulp.task('test', function(){
  return gulp.src('test/**/*Spec.{js,coffee}')
  .pipe(jasmine({
    reporter: new reporters.TerminalReporter()
  }));
});
github ArkEcosystem / mobile-wallet / e2e / protractor.conf.js View on Github external
onPrepare() {
    var jasmineReporters = require('jasmine-reporters');
    jasmine.getEnv().addReporter(new jasmineReporters.TerminalReporter({
      verbosity: 3,
      color: true,
      showStack: true
    }));
  }
};