rubocop-rspec
Ruby Tests Profiling Toolbox
Our great sponsors
rubocop-rspec | Ruby Tests Profiling Toolbox | |
---|---|---|
2 | 7 | |
775 | 1,783 | |
0.1% | 1.3% | |
9.0 | 7.5 | |
2 days ago | 20 days ago | |
Ruby | Ruby | |
MIT License | MIT License |
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.
rubocop-rspec
- Best practices as code using RuboCop
-
Beginner's Guide to RuboCop in Rails
rubocop-rspec For Rspec; a test framework popular for testing Rails code
Ruby Tests Profiling Toolbox
-
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.
-
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?
DuckRails - Development tool to mock API endpoints quickly and easily (docker image available)
rufo - The Ruby Formatter
minitest - minitest provides a complete suite of testing facilities supporting TDD, BDD, mocking, and benchmarking.
Spinach - Spinach is a BDD framework on top of Gherkin.
timecop - A gem providing "time travel", "time freezing", and "time acceleration" capabilities, making it simple to test time-dependent code. It provides a unified method to mock Time.now, Date.today, and DateTime.now in a single call.
faker - A library for generating fake data such as names, addresses, and phone numbers.
factory_bot - A library for setting up Ruby objects as test data.
Watir - Watir Powered By Selenium
Cucumber - A home for issues that are common to multiple cucumber repositories
ffaker - Faker refactored.
Capybara - Acceptance test framework for web applications
Appraisal - A Ruby library for testing your library against different versions of dependencies.