GithubHelp home page GithubHelp logo

isabella232 / jasmine-reporters Goto Github PK

View Code? Open in Web Editor NEW

This project forked from atom/jasmine-reporters

0.0 0.0 0.0 1.37 MB

Reporter classes for the jasmine test framework. Includes JUnitXmlReporter for generating junit xml output for running in CI environments like Jenkins.

License: MIT License

JavaScript 99.16% Shell 0.84%

jasmine-reporters's Introduction

This branch is for Jasmine 1.x. Switch to the 2.x branch.

Jasmine Reporters

Jasmine Reporters is a collection of javascript jasmine.Reporter classes that can be used with the JasmineBDD testing framework.

Included reporters:

  • ConsoleReporter - Report test results to the browser console.
  • JUnitXmlReporter - Report test results to a file in JUnit XML Report format.
  • NUnitXmlReporter - Report test results to a file in NUnit XML Report format.
  • TapReporter - Test Anything Protocol, report tests results to console.
  • TeamcityReporter - Basic reporter that outputs spec results to for the Teamcity build system.
  • TerminalReporter - Logs to a terminal (including colors) with variable verbosity.

Usage

Examples are included in the test directory that show how to use the reporters, as well a basic runner scripts for Rhino + envjs, and a basic runner for PhantomJS. Either of these methods could be used in a Continuous Integration project for running headless tests and generating JUnit XML output.

Rhino + EnvJS

Everything needed to run the tests in Rhino + EnvJS is included in this repository inside the ext directory, specifically Rhino 1.7r2 and envjs 1.2 for Rhino.

PhantomJS

Should work in most versions of PhantomJS > 1.4.1 I have used PhantomJS 1.4.1 through 1.9.6 on Mac OS X with no problems.

Node.js

Most of these reporters also work in node.js by making use of the excellent jasmine-node project.

Protractor

Protractor 1.6.0 or above allows you to use either Jasmine 1 or Jasmine 2. If you are using Jasmine 1, make sure you install a 1.x-compatible version of jasmine-reporters:

npm install --save-dev jasmine-reporters@^1.0.0

Then set everything up inside your protractor.conf:

onPrepare: function() {
    // The require statement must be down here, since [email protected]
    // expects jasmine to be in the global and protractor does not guarantee
    // this until inside the onPrepare function.
    require('jasmine-reporters');
    jasmine.getEnv().addReporter(
        new jasmine.JUnitXmlReporter('xmloutput', true, true)
    );
}

jasmine-reporters's People

Contributors

ahus1 avatar alanning avatar cburgmer avatar decoy31 avatar eeroan avatar founddrama avatar jayharris avatar larrymyers avatar mbest avatar mgol avatar millermedeiros avatar mtscout6 avatar ondras avatar putermancer avatar sheile avatar shustariov-andrey avatar theraven avatar uzikilon avatar zazoomauro avatar zubairov avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.