brutal
r_spec-clone.rb
brutal | r_spec-clone.rb | |
---|---|---|
1 | 1 | |
53 | 21 | |
- | - | |
0.0 | 0.0 | |
2 months ago | over 1 year 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.
brutal
-
What Ruby code to expect from a testing DSL?
Unless you don't write tests, the advantage of using such DSL interface is to limit the introduction of additional logic into the specification document with potential errors, to encourage the use of good Ruby patterns with low algorithmic complexity, and to make Ruby code shorter and more (machine) readable.
r_spec-clone.rb
-
What Ruby code to expect from a testing DSL?
To try to answer this question while avoiding the endless debate between RSpec and minitest, I will use the RSpec clone project for the purpose of this post.
What are some alternatives?
DuckRails - Development tool to mock API endpoints quickly and easily (docker image available)
RSpec Tracer - RSpec Tracer is a specs dependency analyzer, flaky tests detector, tests accelerator, and coverage reporter tool for RSpec. It maintains a list of files for each test, enabling itself to skip tests in the subsequent runs if none of the dependent files are changed. It uses Ruby's built-in coverage library to keep track of the coverage for each test.
capybara-webkit
Cucumber - A home for issues that are common to multiple cucumber repositories
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.
Loco-Rails - Rails is awesome, but modern web needs Loco-motive.
mutant - Automated code reviews via mutation testing - semantic code coverage.
Spork - A DRb server for testing frameworks (RSpec / Cucumber currently) that forks before each run to ensure a clean testing state.
Ruby-JMeter - A Ruby based DSL for building JMeter test plans
rspec-tap-formatters - TAP Producer for RSpec-3
Capybara - Acceptance test framework for web applications
Bacon - a small RSpec clone