UltraPending
Are you totally over the tired old process of weeding pending tests out of your projects? This, my good friend, may be the solution to all of your problems.
By injecting UltraPending
into your test suite's environment, your "pending" tests will begin showing a better behavior when tests are run: they will fail, and some helpful advice is spit out as the failure message.
Installation
Add this line to your application's Gemfile:
gem 'ultra_pending'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ultra_pending
Usage
To use this gem, you'll basically want to include/extend it into your test suite's example context. Handy shortcuts are already provided for both RSpec and Cucumber:
# In, for example, your spec/spec_helper.rb ...
require 'ultra_pending/rspec'
# In, for example, your features/support/env.rb ...
require 'ultra_pending/cucumber'
Development
After checking out the repo, run bin/setup
to install dependencies. Then, run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
. To release a new version, update the version number in version.rb
, and then run bundle exec rake release
to create a git tag for the version, push git commits and tags, and push the .gem
file to rubygems.org.
Contributing
- Fork it ( https://github.com/ess/ultra_pending/fork )
- Ensure that you're basing off of develop (
git checkout develop
) - Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request