Code Monkey home page Code Monkey logo

behaviour's Introduction

Behaviour - Minimal Behaviour Driven Development Using Cucumber

What?

Stand-alone testing setup for web apps using selenium to drive browsers. Test your web site like a user, using a browser. No Ruby on Rails or non-essential components.

Installation##

  • Install RVM (as a user)

  • Install Ruby 1.9.2 (osx 10.6 64bit)

    $ rvm install 1.9.2 -C --with-readline-dir=/opt/local,--build=x86_64-apple-darwin10

  • Switch to that newly installed version of Ruby.

    $ rvm use 1.9.2

  • cd to your local repo, then run the following

    $ rvm gemset create 'behavior'

    $ echo 'rvm ruby-1.9.2@behaviour' > .rvmrc

This will create a fresh gemset and instruct RVM to always use that gemset when in the behaviour project

  • Now we install the required gems, but first we need to install bundler

    $ gem install bundler

    $ bundle install

    Run gem list to see a list of all your freshly-installed gems.

If you want to use this gemset and version of Ruby as your system default, run rvm 1.9.2@behaviour --default. To return to your system installed version and gemset, run rvm system

Woot. Now What?

Run cucumber features. You should see Firefox pop up and various cool shit happen. Good Times™

Write Tests. Run them and watch them fail. Write code to make them pass. Repeat. Win.

Testing in Internet Explorer

Testing in on a remote Windows machine is supported. See comments in features/support/env.rb for details.

behaviour's People

Contributors

andrewk avatar craiga avatar lox 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.