Git Product home page Git Product logo

jasmine-reporters's Introduction

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 (using Rhino or PyPhantomJS) in JUnit 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.

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 (using PyPhantomJS and the saveToFile plugin). 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, PyPhantomJS

PhantomJS is included as a submodule inside the ext directory. The included example runner makes use of PyPhantomJS to execute the headless tests and save XML output to the filesystem.

While PhantomJS and PyPhantomJS both run on MacOS / Linux / Windows, there are specific dependencies for each platform. Specifics on installing these are not included here, but is left as an exercise for the reader. The PhantomJS project contains links to various documentation, including installation notes.

Here is how I got it working in MacOSX 10.6 (YMMV):

  • ensure you are using Python 2.6+
  • install Xcode (this gives you make, et al)
  • install qt (this gives you qmake, et al)
    • this may be easiest via homebrew
    • brew install qt
  • install the python sip module
    • pip install sip # this will fail to fully install sip, keep going
    • cd build/sip
    • python configure.py
    • make && sudo make install
  • install the python pyqt module
    • pip install pyqt # this will fail to fully install pyqt, keep going
    • cd build/pyqt
    • python configure.py
    • make && sudo make install

jasmine-reporters's People

Contributors

ahus1 avatar cburgmer avatar decoy31 avatar eeroan avatar larrymyers avatar leoselig avatar mbest avatar millermedeiros avatar mtscout6 avatar ondras avatar putermancer avatar sheile avatar theraven avatar uzikilon avatar

Watchers

 avatar  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.