TestProf is a collection of different tools to analyze your test suite performance.
Why does test suite performance matter? First of all, testing is a part of a developer's feedback loop (see @searls talk) and, secondly, it is a part of a deployment cycle.
Simply speaking, slow tests waste your time making you less productive.
TestProf toolbox aims to help you identify bottlenecks in your test suite. It contains:
-
Plug'n'Play integrations for general Ruby profilers (
ruby-prof
,stackprof
) -
Factories usage analyzers and profilers
-
ActiveSupport-backed profilers
-
RuboCop cops
-
etc.
Of course, we have some solutions for common performance issues too, bundled into the gem.
Supported Ruby versions:
-
Ruby (MRI) >= 2.3.0 (NOTE: for Ruby 2.2 use TestProf < 0.7.0)
-
JRuby >= 9.1.0.0
-
Paris.rb, 2018, "99 Problems of Slow Tests" talk [video, slides]
-
RailsClub, Moscow, 2017, "Faster Tests" talk [video (RU), slides]
Add test-prof
gem to your application:
group :test do
gem 'test-prof'
end
And that's it)
Check out our docs.
Have an idea? Propose a feature request!
Already using TestProf? Share your story!
The gem is available as open source under the terms of the MIT License.