Description
Specing framework for Ruby
Fix alternatives and similar gems
Based on the "Testing" category.
Alternatively, view Fix alternatives based on common mentions on social networks and blogs.
-
Selenium WebDriver
A browser automation framework and ecosystem. -
faker
A library for generating fake data such as names, addresses, and phone numbers. -
vcr
Record your test suite's HTTP interactions and replay them during future test runs for fast, deterministic, accurate tests. -
Cucumber
A home for issues that are common to multiple cucumber repositories -
WebMock
Library for stubbing and setting expectations on HTTP requests in Ruby. -
shoulda-matchers
Simple one-liner tests for common Rails functionality -
minitest
minitest provides a complete suite of testing facilities supporting TDD, BDD, mocking, and benchmarking. -
Parallel Tests
Ruby: 2 CPUs = 2x Testing Speed for RSpec, Test::Unit and Cucumber -
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. -
capybara-webkit
A Capybara driver for headless WebKit to test JavaScript web apps -
mutant
Automated code reviews via mutation testing - semantic code coverage. -
DuckRails
Development tool to mock API endpoints quickly and easily (docker image available) -
Ruby Tests Profiling Toolbox
Ruby Tests Profiling Toolbox -
Spork
A DRb server for testing frameworks (RSpec / Cucumber currently) that forks before each run to ensure a clean testing state. -
Appraisal
A Ruby library for testing your library against different versions of dependencies. -
Konacha
Test your Rails application's JavaScript with the mocha test framework and chai assertion library -
Fabrication
This project has moved to GitLab! Please check there for the latest updates. -
API Taster
A quick and easy way to visually test your Rails application's API. -
Knapsack
Knapsack splits tests evenly across parallel CI nodes to run fast CI build and save you time. -
ActiveMocker
Generate mocks from ActiveRecord models for unit tests that run fast because they don’t need to load Rails or a database. -
Wrong
Wrong provides a general assert method that takes a predicate block. Assertion failure messages are rich in detail. -
RR
RR is a test double framework that features a rich selection of double techniques and a terse syntax. ⛺ -
FactoryTrace
Simple tool to maintain factories and traits from FactoryBot -
Pundit Matchers
A set of RSpec matchers for testing Pundit authorisation policies. -
Drawers
Group related classes together. No more silos. A solution to rails dystopia. -
RSpecTracer
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.
Build time-series-based applications quickly and at scale.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Fix or a related project?
Popular Comparisons
README
Fix
Specing framework for Ruby.
Installation
Add this line to your application's Gemfile:
gem 'fix', '>= 1.0.0.beta4'
And then execute:
$ bundle
Or install it yourself as:
$ gem install fix --pre
Example
Given this app:
# examples/duck/app.rb
class Duck
def walks
'Klop klop!'
end
def swims
'Swoosh...'
end
def quacks
puts 'Quaaaaaack!'
end
end
When you run this:
# examples/duck/fix.rb
require_relative 'app'
require_relative '../../lib/fix'
@bird = Duck.new
Fix(@bird) do
on :swims do
it { MUST eql 'Swoosh...' }
end
on :speaks do
it { MUST raise_exception NoMethodError }
end
on :sings do
it { MAY eql '♪... ♫...' }
end
end
Then the output should look like this:
ruby examples/duck/fix.rb
examples/duck/fix.rb:8: Success: expected to eql "Swoosh...".
examples/duck/fix.rb:12: Success: undefined method `speaks' for #<Duck:0x00007fe3be868ea0>.
examples/duck/fix.rb:16: NoMethodError: undefined method `sings' for #<Duck:0x00007fe3be868ea0>.
Contact
- Home page: https://fixrb.dev/
- Source code: https://github.com/fixrb/fix
Versioning
Fix follows Semantic Versioning 2.0.
License
The gem is available as open source under the terms of the MIT License.
This project is sponsored by:
*Note that all licence references and agreements mentioned in the Fix README section above
are relevant to that project's source code only.