How to use the jasmine-reporters.TapReporter 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 mohsen1 / swagger-docs / protractor.conf.js View on Github external
onPrepare: function() {
    // The require statement must be down here, since jasmine-reporters
    // needs jasmine to be in the global and protractor does not guarantee
    // this until inside the onPrepare function.
    var TapReporter = require('jasmine-reporters').TapReporter;

    /* global jasmine */
    jasmine.getEnv().addReporter(new TapReporter());
  }
};
github onury / grunt-jasmine-nodejs / tasks / jasmine.task.js View on Github external
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);
        }

        // CUSTOM JASMINE REPORTERS

        if (Array.isArray(options.customReporters)) {
            options.customReporters.forEach(function (customReporter, index) {
                customReporter.name = customReporter.name
                    || 'Custom Reporter #' + (index + 1);
                addReporter(customReporter);
            });
        }

        // DEFAULT REPORTER
github graknlabs / docs / test / example / nodejs / PhoneCalls.template.js View on Github external
const fs = require('fs')
const Grakn = require("grakn-client");
const reporters = require('jasmine-reporters');

const tapReporter = new reporters.TapReporter();
jasmine.getEnv().addReporter(tapReporter)

jasmine.DEFAULT_TIMEOUT_INTERVAL = 300000;

const loadSchema = async () => {
    const client = new Grakn("localhost:48555");
    const session = await client.session("phone_calls");
    const transaction = await session.transaction().write();
    const defineQuery = fs.readFileSync("files/phone-calls/schema.gql", "utf8");
    await transaction.query(defineQuery);
    await transaction.commit();
    await session.close();
    await client.close();
    console.log("Loaded the phone_calls schema");
};