shoulda-matchers
factory_bot_rails
Our great sponsors
shoulda-matchers | factory_bot_rails | |
---|---|---|
5 | 8 | |
3,465 | 3,028 | |
0.2% | 0.9% | |
8.3 | 7.0 | |
6 days ago | 10 days ago | |
Ruby | Gherkin | |
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.
shoulda-matchers
-
How to Use Shoulda Matchers with RSpec for Ruby on Rails
According to the shoulda-matchers documentation:
-
Get help from thoughtbot for free (mentoring / office hours)
I work at thoughtbot, you might know us for our open source work like administrate, factory_bot or shoulda-matchers.
- Como configurar ambiente de testes em Ruby on Rails com RSpec
-
Top 5 Best Testing Ruby Gems For Building Ruby on Rails Web Application
4. Shoulda-matchers
factory_bot_rails
-
Test Driving a Rails API - Part Two
While we’re at it, let's add a couple of other gems we’ll need for our test environment: factory_bot_rails is a fixtures replacement and generates test model instances. faker is handy for generating fake strings of data to be used in tests. Add those gems to the development and test group of your Gemfile:
-
How to Use Shoulda Matchers with RSpec for Ruby on Rails
Factory Bot Rails
-
How to Setup RSpec on a Rails Project
rspec-rails factory_bot_rails faker
-
factory_bot_rails_seeder: a gem to mass generate factories for your models
Hey all, just published a simple gem to mass generate FactoryBot factories for existing projects. Someone had this issue on GitHub (https://github.com/thoughtbot/factory_bot_rails/issues/404). I failed to build it in a nice way within the main gem, but wanted to get a solution out there for people who might be in need. I had to get some legacy codebases up to speed in the past, and this would have been useful. Cheers! https://github.com/FanaHOVA/factory_bot_rails_seeder
-
It really be like that though
Here is some real Gherkin from the Factory Bot Rails gem source code on GitHub:
- Como configurar ambiente de testes em Ruby on Rails com RSpec
-
10 Signs of a good Ruby on Rails Developer
If your are using gems like faker , factory_bot_rails and database_cleaner to create and clean test records then creating unnecessary records can cost you time and speed.
What are some alternatives?
Capybara - Acceptance test framework for web applications
RSpec - RSpec meta-gem that depends on the other components
minitest - minitest provides a complete suite of testing facilities supporting TDD, BDD, mocking, and benchmarking.
Pundit Matchers - A set of RSpec matchers for testing Pundit authorisation policies.
Cutest - Isolated tests in Ruby.
Cucumber - A home for issues that are common to multiple cucumber repositories
Aruba - Test command-line applications with Cucumber-Ruby, RSpec or Minitest.
Emoji-RSpec - Custom Emoji Formatters for RSpec
Spork - A DRb server for testing frameworks (RSpec / Cucumber currently) that forks before each run to ensure a clean testing state.
Fuubar - The instafailing RSpec progress bar formatter
rspec-tap-formatters - TAP Producer for RSpec-3
faker - A library for generating fake data such as names, addresses, and phone numbers. [Moved to: https://github.com/faker-ruby/faker]