Sha256: 012348017a479e662e8f6046f6286f0f188cd3b629b60c4a0cc08e0c10bbbe31

Contents?: true

Size: 817 Bytes

Versions: 13

Compression:

Stored size: 817 Bytes

Contents

window.Konacha = {
  dots:"",

  mochaOptions: {
    ui: 'bdd',

    reporter: function (runner) {
      window.mocha.reporters.Base.call(this, runner);

      runner.on('start', function () {
        Konacha.results = [];
      });

      runner.on('pass', function (test) {
        Konacha.dots += ".";
        Konacha.results.push({
          name:test.title,
          passed:true
        });
      });

      runner.on('fail', function (test) {
        Konacha.dots += "F";
        Konacha.results.push({
          name:test.title,
          passed:false,
          message:test.err.message,
          trace:test.err.stack
        });
      });

      runner.on('end', function () {
        Konacha.done = true;
      });
    }
  },

  getResults:function () {
    return JSON.stringify(Konacha.results);
  }
};

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
konacha-1.4.1 lib/assets/javascripts/konacha/runner.js
konacha-1.4.0 lib/assets/javascripts/konacha/runner.js
konacha-1.3.1 lib/assets/javascripts/konacha/runner.js
konacha-1.3.0 lib/assets/javascripts/konacha/runner.js
konacha-1.2.4 lib/assets/javascripts/konacha/runner.js
konacha-1.2.3 lib/assets/javascripts/konacha/runner.js
konacha-1.2.2 lib/assets/javascripts/konacha/runner.js
konacha-1.2.1 lib/assets/javascripts/konacha/runner.js
konacha-1.2.0 lib/assets/javascripts/konacha/runner.js
konacha-1.1.3 lib/assets/javascripts/konacha/runner.js
konacha-1.1.2 lib/assets/javascripts/konacha/runner.js
konacha-1.1.1 lib/assets/javascripts/konacha/runner.js
konacha-1.1.0 lib/assets/javascripts/konacha/runner.js