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

minitest-test_profile

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

minitest-test_profile

  • 0.2.2
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Minitest::TestProfile

Show slow test as rspec profile options.

Build Status Gem Version Code Climate Coverage Status

Installation

Add this line to your application's Gemfile:

gem 'minitest-test_profile'

And then execute:

$ bundle

Or install it yourself as:

$ gem install minitest-test_profile

Usage

In your test_helper.rb file, add the following lines:

require 'minitest/test_profile'
Minitest::TestProfile.use!

Options can be specified to use! method. Can specify options are as follows:

Minitest::TestProfile.use!(
  count: 3  # The number of tests to be displayed. The default is 10.
)

Output Example

Top 10 slowest tests (13.062766 seconds, 78.9% of total time):
SearchIntegrationTest#test_can_search_places_that_login_user_created
  11.32 seconds
UserIntegrationTest#test_destroy_user
  0.30 seconds
IndexControllerTest#test_logout_top_page
  0.27 seconds
TravelIntegrationTest#test_add_route
  0.19 seconds
UserTest#test_authenticate_by_google_user
  0.18 seconds
TravelIntegrationTest#test_add_members_link_is_displayed
  0.18 seconds
TermsControllerTest#test_term_page
  0.17 seconds
TravelIntegrationTest#test_edit_schedule
  0.16 seconds
PlaceIntegrationTest#test_archive_place
  0.15 seconds
PlaceIntegrationTest#test_create_place_that_regist_by_form
  0.14 seconds

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/y-yagi/minitest-test_profile. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

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

FAQs

Package last updated on 13 Aug 2018

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