CSC/ECE 517 Fall 2014/ch1b 26 sa: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 4: Line 4:


== Background ==
== Background ==
The Jasmine framework was developed since developers to address certain specific concerns in existing testing frameworks
* Many frameworks only work from within a browser.
* Many don't support testing asynchronous code like event callbacks.
* Some have syntax that's hard for JS developers or IDEs to understand.


== Usage ==
== Usage ==

Revision as of 20:27, 4 October 2014

Jasmine is an open source Behavior Driven Development (BDD) based testing framework for JavaScript. Jasmine aims to run on any Javascript-enabled platform, to not intrude on the application nor the IDE, and to have easy-to-read syntax.

It can be used in the Rails framework. Jasmine ships as a Rubygem and leverages familiar rake tasks and generators to automate common workflows. Jasmine is heavily influenced by other unit testing frameworks, such as ScrewUnit, JSSpec, JSpec, and RSpec; and has syntax very similar to RSpec.

Background

The Jasmine framework was developed since developers to address certain specific concerns in existing testing frameworks

  • Many frameworks only work from within a browser.
  • Many don't support testing asynchronous code like event callbacks.
  • Some have syntax that's hard for JS developers or IDEs to understand.

Usage

Behavior Driven Design

Drawbacks