
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
rspec-rerun reruns failed RSpec examples (for brittle tests).
It writes failed examples to the file rspec.failures
and feeds these back to RSpec via -e
.
(For RSpec 2 use version '~> 0.3.1'. )
# Gemfile
group :development, :test do
gem 'rspec-rerun'
end
# Rakefile
require 'rspec-rerun/tasks'
task default: 'rspec-rerun:spec'
echo rspec.failures >> .gitignore
Run rake
or rake rspec-rerun:spec
. Failed examples will be rerun automatically.
The rspec-rerun:spec
task accepts the following parameters:
retry_count
: number of retries, defaults to 1, also available by settingYou can set the following global environment variables:
RSPEC_RERUN_RETRY_COUNT
: number of retries, defaults to the value of retry_count
or 1RSPEC_RERUN_PATTERN
: spec file pattern, defaults to the value defined by RSpec::Core::RakeTask
RSPEC_RERUN_TAG
: only execute the tag specifiedRSPEC_RERUN_VERBOSE
: if 'false', don't show the rspec command invoked by RakeRerunning failed specs has been a long requested feature #456 in RSpec. A viable approach was suggested in #596. The infrastructure from that pull request was merged and released with rspec-core 2.11, which enabled re-running specs outside of RSpec, as described in our blog post. This gem has evolved from it.
See CONTRIBUTING.
MIT License, see LICENSE for details.
(c) 2012-2015 Artsy Inc., Daniel Doubrovkine and Contributors
FAQs
Unknown package
We found that rspec-rerun demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.