Giter Site home page Giter Site logo

jezebel's Introduction

You shoudn’t use this. This (github.com/guard/guard-jasmine-headless-webkit) is a much better alternative.

Jezebel - a Node.js REPL and continuous test runner for Jasmine

If you’re writing tests using Node.js and Jasmine, Jezebel will help you get faster feedback. It runs your tests continuously (on each change to your code), and provides a shell (a.k.a REPL – Read, Evaluate, Print, Loop) that lets you interact with your project and your tests.

Installation

Stable version is available on npm, so you can install by using:

npm install jezebel --global

If you want to install the edge development version, simply clone this repo and install from it:

git clone git://github.com/benrady/jezebel.git
npm install ./jezebel

Using Jezebel

$ jezebel 
> ................................................................

Completed in 0.037 seconds
64 examples 

>

Jezebel runs all your tests when it starts, and every time a .js file in or under the current directory is changed. You can force a test run by calling the runTests() function from the REPL. Other functions will become available as jezebel improves.

Customization

Jezebel can be customized by creating a .jezebel file in the root of your project (where Jezebel is run from). This file is loaded as a module and any functions that it exports will be available in the REPL. By exporting a settings object you can configure the behavior of Jezebel, and attach hooks to events such as onChange, onPass, onFail. See github.com/benrady/jezebel/blob/master/.jezebel for an example of this configuration.

Jezebel “Plugins”

Additional modules can easily be added to Jezebel by requiring them in your .jezebel file. The jezebel/utils module is included with Jezebel, but any node.js package included in your load path can be used. You can either use these modules in your config file, or re-export them for use in the REPL.

Acknowledgement

Under the covers, Jezebel uses Jessie (github.com/futuresimple/jessie) to run tests.

Copyright © 2011 Ben Rady. See LICENSE for details.

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.