Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rspec-instrumentation

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rspec-instrumentation

  • 0.1.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

RSpec instrumentation

RSpec instrumentation component to measure performances, profile and monitor the test suite using an external service.

DISCLAIMER: this is an initial version, major changes will probably happens in the first releases

Support for:

  • New Relic
  • Sentry APM (partial for now)

Setup the gem, execute the test suite, check the results in the service interface.

Install

  • Add to the Gemfile (in the test group): gem 'rspec-instrumentation'
  • Follow the specific instructions below per service

New Relic

  • Configure New Relic on your application (also adding the gem 'newrelic_rpm' to the Gemfile)
  • Add an initializer in your app (config/initializers/new_relic.rb) with:
RSpecInstrumentation::NewRelic.setup if Rails.env.test?
  • Add to your rails_helper.rb (or spec_helper.rb):
# It's better to put in at the end, after the other configuration options
RSpec.configure do |config|
  RSpecInstrumentation::RSpec.setup(config, service: :new_relic)
end
  • If you are using VCR, depending on your configuration you could need also to permit external requests to the New Relic service, example:
VCR.configure do |config|
  config.ignore_hosts 'collector-001.eu01.nr-data.net' # the host could be different for your account
end

Do you like it? Star it!

If you use this component just star it. A developer is more motivated to improve a project when there is some interest.

Or consider offering me a coffee, it's a small thing but it is greatly appreciated: about me.

Contributors

License

The gem is available as open-source under the terms of the MIT.

FAQs

Package last updated on 19 May 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc