#Scratch JavaScript Libraries Documentation can be found on the Scratch Website
If you would like to run the Jasmine specs, you will need the following tools and libraries installed:
Although not strictly required, the automated testing and Guard components for automatic test execution and CI are monitored and launched using Ruby 1.9 or higher.
Per the guard-jasmine README.md:
You need the PhantomJS browser installed on your system. You can download binaries for Mac OS X and Windows from [the PhantomJS download section][].
Alternatively you can install [Homebrew][] on Mac OS X and install it with:
$ brew install phantomjs
If you are using Ubuntu 12.04 or above, phantomjs is in the official repositories and can be installed with apt:
$ sudo apt-get install phantomjs
For older versions of Ubuntu, you will need to add a repository first:
$ sudo add-apt-repository ppa:jerome-etienne/neoip
$ sudo apt-get update
$ sudo apt-get install phantomjs
You can also build it from source for several other operating systems, please consult the [PhantomJS build instructions][].
Install all Ruby gem dependencies:
$ bundle install
The Scratch JavaScript API project uses Guard to continually monitor changes in source, spec files, and development files.
Simply start Guard to automatically run tests and monitor for changes:
$ bundle exec guard
Tests can be run through the local Jasmine web server via:
$ bundle exec rake jasmine
or in a one-time fashion for CI environments:
$ bundle exec rake jasmine:ci