Coder Social home page Coder Social logo

mikz / jasmine-phantom Goto Github PK

View Code? Open in Web Editor NEW

This project forked from flipstone/jasmine-phantom

0.0 3.0 0.0 107 KB

Run your jasmine specs from the command line using phantomjs

Home Page: http://github.com/flipstone/jasmine-phantom

License: MIT License

Ruby 89.72% JavaScript 10.28%

jasmine-phantom's Introduction

Jasmine Phantom

Jasmine Phantom provides a rake task that runs your jasmine specs via phantomjs. It requires jasmine >= 1.2.0.

Installation

Add jasmine 1.2.0 and jasmine-phantom to your gemfile:

gem 'jasmine', '1.2.0'
gem 'jasmine-phantom'

and run bundle install.

Then run bundle exec rake jasmine and check http://localhost:8888/ to make sure your jasmine specs are passing.

Download and install the appropriate PhantomJS for your platform. Make sure to add the directory with the phantomjs executable to your PATH.

Finally, run bundle exec rake jasmine:phantom:ci and you should see output similar to:

Waiting for jasmine server on 57832...
[2012-04-18 15:50:52] INFO  WEBrick 1.3.1
[2012-04-18 15:50:52] INFO  ruby 1.9.3 (2011-10-30) [x86_64-darwin10.8.0]
[2012-04-18 15:50:52] INFO  WEBrick::HTTPServer#start: pid=11608 port=57832
Waiting for jasmine server on 57832...
jasmine server started.
phantomjs /some-path-to/jasmine-phantom/lib/jasmine-phantom/run-jasmine.js http://localhost:57832

215 specs | 0 failing

That's it!

jasmine-phantom's People

Contributors

14to9 avatar qxjit avatar

Watchers

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