What are the best practices for creating test data for medium-sized applications?

Asked 2 years ago, Updated 2 years ago, 135 views

Less than 200 Models
100 Controllers

I'm creating an application that's about .

The test tools are FactoryGirl and RSpec.
I create test data with FactoryGirl every time, but the relationship is quite large, and it takes a lot of time to create test data even if I use mock/stub.

Please tell me how to create your test data efficiently.

ruby-on-rails rspec

2022-09-30 21:12

1 Answers

It may be a little off the subject, but if you want to speed up the test, why don't you consider parallelizing the test run?For your information, I think the following libraries (gem) are popular for parallelization.


2022-09-30 21:12

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.