Faster testing with Rails
Just came across this article Faster testing with Rails 1.0 by Mike Clark
Decided to check out the impact of it on our application.
Currently we are using both transactional_fixtures as well as instantiated_fixtures.
UnitTests
Finished in 2.197282 seconds.
48 tests, 247 assertions, 0 failures, 0 errors
Functional Tests
Finished in 3.798338 seconds.
56 tests, 226 assertions, 0 failures, 0 errors
on turning off instantiated_fixtures (as suggested by Mike)
UnitTests
Finished in 1.999902 seconds.
48 tests, 247 assertions, 0 failures, 0 errors
Functional Tests
Finished in 3.59077 seconds.
56 tests, 226 assertions, 0 failures, 0 errors
Not too much of a difference. But then we still dont have too many tests and I guess every second counts.
Decided to check out the impact of it on our application.
Currently we are using both transactional_fixtures as well as instantiated_fixtures.
UnitTests
Finished in 2.197282 seconds.
48 tests, 247 assertions, 0 failures, 0 errors
Functional Tests
Finished in 3.798338 seconds.
56 tests, 226 assertions, 0 failures, 0 errors
on turning off instantiated_fixtures (as suggested by Mike)
UnitTests
Finished in 1.999902 seconds.
48 tests, 247 assertions, 0 failures, 0 errors
Functional Tests
Finished in 3.59077 seconds.
56 tests, 226 assertions, 0 failures, 0 errors
Not too much of a difference. But then we still dont have too many tests and I guess every second counts.
0 Comments:
Post a Comment
<< Home