updated cucumber instructions

This commit is contained in:
Nick Gauthier 2010-03-30 14:14:23 -04:00
parent 5d5a7a2a33
commit 06e1992a97
1 changed files with 17 additions and 3 deletions

View File

@ -20,12 +20,9 @@ In your rakefile:
require 'hydra/tasks' require 'hydra/tasks'
Hydra::TestTask.new('hydra') do |t| Hydra::TestTask.new('hydra') do |t|
# test unit
t.add_files 'test/unit/**/*_test.rb' t.add_files 'test/unit/**/*_test.rb'
t.add_files 'test/functional/**/*_test.rb' t.add_files 'test/functional/**/*_test.rb'
t.add_files 'test/integration/**/*_test.rb' t.add_files 'test/integration/**/*_test.rb'
# cucumber
t.add_files 'features/**/*.feature'
end end
Run: Run:
@ -35,6 +32,23 @@ Run:
Hydra defaults to Single Core mode, so you may want to configure it Hydra defaults to Single Core mode, so you may want to configure it
to use two (or more) of your cores if you have a multi-processing machine. to use two (or more) of your cores if you have a multi-processing machine.
== Hydra + Cucumber
Hydra can run cucumber features, but because of cucumber's specialized
environment, cucumber features have to be run after your other tests.
Hydra::TestTask.new('hydra') do |t|
t.add_files 'test/unit/**/*_test.rb'
t.add_files 'test/functional/**/*_test.rb'
t.add_files 'test/integration/**/*_test.rb'
# cucumber
t.autosort = false
t.add_files 'features/**/*.feature'
end
Hydra's autosort feature sorts files by their runtime, so we
have to disable it in order to run cucumber features at the end
== Supported frameworks == Supported frameworks
Right now hydra only supports a few frameworks: Right now hydra only supports a few frameworks: