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

rspec-dump-profile-customizer

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rspec-dump-profile-customizer

  • 0.0.2
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

RSpec Dump Profile Customizer

RSpecDumpProfileCustomizer provides report about worst N slow test and/or slow test over N seconds. You can set "N" in rails configuration file, application.rb. This is a small gem which modify dump_profile method in rspec for rails application. It therefore depends on rspec and rails.

Installation

Add 'rspec-dump-profile-customizer' gem to your existing app’s Gemfile:

gem 'rspec-dump-profile-customizer'

Bundle it:

% bundle

Usage

Set up rspec-dump-profile-customizer is easy. Just put it in your Gemfile and add your application.rb settings.

application.rb

config.rspec_dump_profile.number  = 15
config.rspec_dump_profile.second  = 3.5

Then, run your specs like this from now on:

$ bundle exec rspec -p spec/*/*_spec.rb

If you want to see slow tests as your default formatter, simply put the options in your .rspec file:

--profile

Then, run your specs like this from now on:

$ bundle exec rake spec

Sample Image

Prerequisites

A Rails >= 3.0 Application with RSpec >= 2.0

Contributing

Send me your pull requests.

Copyright (c) mori-dev. See LICENSE for details.

FAQs

Package last updated on 05 Aug 2012

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