Sha256: eed60b96cb1381fb5f5d23e5c346addaf7cb5d02f42d28ae018e3986a3138dee

Contents?: true

Size: 1.43 KB

Versions: 1

Compression:

Stored size: 1.43 KB

Contents

= cucumber-cinema

Take a series of screenshots while runing your cucumber test suite

== Installation

Add this to you Gemfile

  group :test do
    gem 'cucumber-cinema'
  end
And bundle bundle install

Install wkhtmltoimage (https://github.com/csquared/IMGKit)

Add this to features/support/cucumber_screenhot.rb
  After do
    embed_screenshot
  end

Run your cucumber suite and screenshots will be generated in directory tmp/capybara

If running spork, add this to the env.rb file
  Spork.each_run do
    CucumberCinema::new_movie
  end


  Spork.prefork do
    World(CucumberCinema)
  end
  
If you want to take a screenhot of a scenario regardless of what cinema decides, tag it with @action

== Contributing to cucumber-cinema
 
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
* Fork the project
* Start a feature/bugfix branch
* Commit and push until you are happy with your contribution
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.

== Copyright

Copyright (c) 2011 Ilya Katz. See LICENSE.txt for
further details.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cucumber-cinema-0.4.2 README.rdoc