GithubHelp home page GithubHelp logo

scratch-api-javascript's Introduction

#Scratch JavaScript Libraries Documentation can be found on the Scratch Website

Development and Testing Prerequisites

If you would like to run the Jasmine specs, you will need the following tools and libraries installed:

Ruby

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.

PhantomJS

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][].

Installation

Install all Ruby gem dependencies:

$ bundle install

Automatic Test Execution and Environment Monitoring

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

Running the Tests Manually

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

scratch-api-javascript's People

Contributors

jim-miller 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.