Rails Integration Tests: Reduces Runtime

I want to share my findings and hear from others about successful and unsuccessful attempts to reduce the execution time of integration tests of Rails applications (whether it be regular tests, Cucumber or RSpec).

The question implies that tests include a database, rendering visualization, and possibly JavaScript / AJAX. E.I. the test does not drown / mock the slow parts of the application.

+3
source share
1 answer

The answer of the author. I tried two things: spork plug-in and in-memory database. My dev configuration: Ubuntu VirtualBox hosted on Win7, Ruby 1.8.7, Rails 3, SQLite.

Spork 35 2 . , github readme. , Guard spork .

, . 10%, 2- , . , . , .

RVM Ruby 1.8.7 1.9.2. 58 42 .

: Spork 1.8.7 1.9.2 TDD.

+1

All Articles