GithubHelp home page GithubHelp logo

dougreeder / jasmine-webos Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pivotalexperimental/jasmine-webos

1.0 3.0 1.0 699 KB

JavaScript BDD for Palm webOS

Home Page: http://pivotal.github.com/jasmine-webos

Ruby 3.74% JavaScript 96.26%

jasmine-webos's Introduction

Jasmine webOS v1.0.0

If you want to use Jasmine webOS in a Palm webOS project, please go to the home page and download the code.

This repo is for development on the plugin itself.

Dependencies

To run Jasmine webOS's specs, you need to have Ruby and the following rubygems installed on your system:

  • rake
  • colored
  • json
  • jasmine

Additionally, you need to have installed the Palm webOS SDK.

Organization

Jasmine webOS defines a convention for plugins into webOS applications, allowing collections of JavaScript code to be included into Palm Mojo applications apart from an application's code & other resources. This is distinct & unrelated from Palm's PDK (Plugin Development Kit).

These plugins cannot be tested completely by themselves, so this repo is itself a webOS application that includes the Jasmine webOS plugin (in <app_root>/plugins/jasmine-webos).

How to Run Specs

The subset of specs that test code that do not depend on Mojo (Palm's application framework) can be run in any browser when using the Jasmine gem. All specs can be run in the Palm webOS emulator or on a device - the results will be presented in Mojo UI.

Browser Specs

Once the Jasmine gem is installed, in a terminal window cd to the root of the repo and run: rake jasmine. Point your browser to the URL you're told to (default is http://localhost:8888) and the specs will run.

Note: While any browser should run these specs, it is recommended to use a webkit-based browser such as Chrome or Safari as they are closer to what runs on webOS.

All Specs

If all of the browser specs pass, then you should run the specs on the emulator. With an emulator open, rake from the repo root will build Jasmine webOS, package the test harness application, install on the emulator and run the application such that the specs will run.

The test harness application is a normal webOS Mojo application, but it responds to a launch argument of {"runTests": true}. This launch argument causes the Jasmine TestAssistant to run, which executes the Jasmine specs and reports the results in webOS UI - a red/green progress bar & a list of failed specs. If the app is launched without this argument (say, by clicking on the app in the launcher), you will see a page telling you to launch the app with the correct arguments from your command line.

Contributing & Discussion

We are happy to look at any pull request that comes with specs. Discussion can be had in our development email list on Google Groups.

jasmine-webos's People

Contributors

infews avatar pivotalops avatar dougreeder avatar

Stargazers

 avatar

Watchers

 avatar James Cloos 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.