Git Product home page Git Product logo

jasmine's Introduction

Jasmine

A JavaScript Testing Framework

Jasmine is a Behavior Driven Development testing framework for JavaScript. It does not rely on browsers, DOM, or any JavaScript framework. Thus it's suited for websites, Node.js projects, or anywhere that JavaScript can run.

Documentation & guides live here: http://pivotal.github.com/jasmine/

Support

How to Contribute

We welcome your contributions - Thanks for helping make Jasmine a better project for everyone. Please review the backlog and discussion lists (the main group - http://groups.google.com/group/jasmine-js and the developer's list - http://groups.google.com/group/jasmine-js-dev) before starting work - what you're looking for may already have been done. If it hasn't, the community can help make your contribution better.

Development Environment

Jasmine Core relies on Ruby for executing the test suite and building the project for release. The spec suite runs in any major, modern browser (Firefox, Safari, Chrome, and yes various IE's) and in Node.js. While you probably have browsers installed, you want to make sure that Ruby and Node are present.

How to Develop for Jasmine Core

  • Write specs
  • Make them pass in a browser (or three):
    • open spec/runner.html in your browsers
    • rake spec:browser will run in the default browser on MacOS
  • Make them pass in Node: rake spec:node
  • Fix any warnings or errors from JSHint: rake jasmine:lint

Running rake spec will run the browser tests, then run specs in Node, then run JSHint. But this will only run in the default browser and only on MacOS (for now).

Making a Successful Pull Request

  • Include specs for your work - it helps us understand your intent and makes sure that future development doesn't break your work
  • Ensure the full test suite is green in all the big browsers, Node, and JSHint - your contribution shouldn't break Jasmine for other users

Do these things and we'll take a look.

Maintainers

Copyright (c) 2008-2011 Pivotal Labs. This software is licensed under the MIT License.

jasmine's People

Contributors

btakita avatar danielheath avatar deadlyicon avatar eahanson avatar epabst avatar fabiomcosta avatar infews avatar jpalermo avatar pivotalops avatar pivotalzergling avatar ragaskar avatar sconover avatar tcrayford avatar thewoolleyman avatar xian avatar

Stargazers

 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.