KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I would like to increase the speed of my tests. Should I use use_transactional_fixtures or go with the database_cleaner gem? Which database_cleaner strategy is the best? I noticed that after migration from :truncation to :transaction my more than 800 examples run about 4 times faster! Should I turn off use_transactional_fixtures when I use database_cleaner :transaction ? Is it true that the best strategy for rack_test is :transaction ? What is the best practices for changing strategy on the fly from :transaction to :truncation when using selenium or akephalos ? P.S. Mysql, Rails 3, Rspec2, Cucumber P.P.S. I know about spork and parallel_test and using them. But they are offtopic. For example, Spork save about 15-20 sec on whole suite run, but changing from :transaction to :truncation dramatically increase running time from 3.5 to 13.5 minutes (10 minutes difference).
Tags (comma-separated)
Save Edits
Cancel