Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Reporter for Jasmine BDD Framework based on Notification API (supports onky WebKit now)
CoffeeScript JavaScript Ruby
Tree: ebe6bd2f81

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
vendor
.gitignore
Cakefile
Gemfile
Gemfile.lock
Guardfile
MIT.LICENSE
README.md
jasmine-wkreporter.js
specRunner.html

README.md

Jasmine WebKit Reporter

Jasmine WebKit Reporter is the simple reporter for Jasmine for showning results of spec running by Notification API. This is reporter works with Chrome/Chromium only, because Notification API implemented only in this browser.

Need permission for use notifications for work this reporter.

Installation

Install this reporter is very simple task. Only enable script after Jasmine in SpecRunner.

Usage

This is simple example of usage. :

(function() {
    var jasmineEnv = jasmine.getEnv();
    jasmineEnv.updateInterval = 1000;

    var trivialReporter = new jasmine.TrivialReporter();
    var webkitReporter = new jasmine.WebkitReporter(); // create new reporter instance

    jasmineEnv.addReporter(trivialReporter);
    jasmineEnv.addReporter(webkitReporter); // register reporter in jasmineEnv

    jasmineEnv.specFilter = function(spec) {
      return trivialReporter.specFilter(spec);
    };

    var currentWindowOnload = window.onload;

    window.onload = function() {
      if (currentWindowOnload) {
        currentWindowOnload();
      }
      execJasmine();
    };

    function execJasmine() {
      jasmineEnv.execute();
    }

  })();

When specs are running, will be used TrivialReporter (default for Jasmine), and
WebkitReporter.
Something went wrong with that request. Please try again.