rspec-expectations
Provides a readable API to express expected outcomes of a code example (by rspec)
Ruby Tests Profiling Toolbox
Ruby Tests Profiling Toolbox (by test-prof)
rspec-expectations | Ruby Tests Profiling Toolbox | |
---|---|---|
1 | 9 | |
1,259 | 1,904 | |
- | 0.6% | |
8.6 | 8.2 | |
4 months ago | 1 day ago | |
Ruby | Ruby | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
rspec-expectations
Posts with mentions or reviews of rspec-expectations.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-03-09.
Ruby Tests Profiling Toolbox
Posts with mentions or reviews of Ruby Tests Profiling Toolbox.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-02-02.
-
Base test profiling inside docker with test-prof
https://github.com/test-prof/test-prof Test-prof gem
- A collection of different tools to analyze your Ruby test suite performance
-
Must-have gems for mature Rails
gem "test-prof" - https://github.com/test-prof/test-prof | Toolkit for inspecting and optimising your test-suite, a must-have.
-
Measuring load time on fixtures
You might be able to do something with https://test-prof.evilmartians.io, but I'm not sure it has anything specific to fixtures out of the box. Maybe using the event profiler on sql.active_record events would be close enough. In the limit, you could wire together your own ActiveSupport::Notifications.instrument around the relevant blocks + an ActiveSupport::Notifications.subscribe to that event so as to log the relevant information. Docs: https://api.rubyonrails.org/classes/ActiveSupport/Notifications.html
-
How to optimize factory creation.
To have a better vision of what objects are created in our spec file we can use test-prof, a powerful gem that provides a collection of different tools to analyse your test suite performance. One of this tool is really useful to identify a factory cascade, let’s introduce factory profiler.
-
A Trick For Reading Flamegraphs
TestProf can be used to get flamegraphs for Ruby test suites.
- How to improve a test suit made with Rspec, Capybara, FactoryBot and Siteprism
-
Does pytest break a lot of coding rules?
Rspec has spec_helper.rb.
-
Learning resources to broaden the knowledge
I also love the test-prof documentation, there's a lot of good ideas on how to improve test performance.
What are some alternatives?
When comparing rspec-expectations and Ruby Tests Profiling Toolbox you can also consider the following projects:
rspec-mocks - RSpec's 'test double' framework, with support for stubbing and mocking
DuckRails - Development tool to mock API endpoints quickly and easily (docker image available)
rspec-core - RSpec runner and formatters
Spinach - Spinach is a BDD framework on top of Gherkin.
rspec-rails - RSpec for Rails 7+
ffaker - Faker refactored.