Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Is hydra expected to provide any benefit without using RSpec or Factory Girl? #33

@briantobin

Description

@briantobin

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!

Brian

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions