You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 9, 2017. It is now read-only.
Forgive the dumb question but I haven't been able to find an answer online. Using traditional fixtures and Test::Unit I can run unit tests in 1 minute 16 seconds:
time rake test:units
235 tests, 3813 assertions, 0 failures, 0 errors
real 1m16.273s
user 0m40.823s
sys 0m2.352s
I installed the hydra gem and added the following to my Rakefile:
Hydra::TestTask.new('hydra') do |t|
t.add_files 'test/unit/**/*_test.rb'
end
My config/hydra.yml looks like this:
workers:
- type: local
runners: 2
Running my unit tests inside hydra results in a slowdown:
time RAILS_ENV=test rake hydra
(in /home/brian/co/manage)
Hydra Testing [##############################>] 87/87
real 2m5.797s
user 0m0.384s
sys 0m0.208s
I'm wondering if this is because I'm not using RSpec or Factory Girl or Cucumber or anything else that the cool kids are using these days. The database is Postgres and I have transaction fixtures and concurrent connections enabled. Any help would be appreciated. Thanks!