Class: Spork::Server::Cucumber

Inherits:
Spork::Server show all
Defined in:
lib/spork/server/cucumber.rb

Constant Summary collapse

CUCUMBER_PORT =
8990
CUCUMBER_HELPER_FILE =
File.join(Dir.pwd, "features/support/env.rb")

Constants inherited from Spork::Server

BOOTSTRAP_FILE, LOAD_PREFERENCE

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Spork::Server

available?, available_servers, bootstrap, bootstrapped?, #helper_file, inherited, #listen, load_preference_index, #port, #run, run, #running?, server_name, supported_servers, using_rails?

Class Method Details

.helper_fileObject



9
10
11
# File 'lib/spork/server/cucumber.rb', line 9

def self.helper_file
  CUCUMBER_HELPER_FILE
end

.portObject



5
6
7
# File 'lib/spork/server/cucumber.rb', line 5

def self.port
  CUCUMBER_PORT
end

.step_mother=(value) ⇒ Object



13
14
15
# File 'lib/spork/server/cucumber.rb', line 13

def self.step_mother=(value)
  @step_mother = value
end

Instance Method Details

#run_tests(argv, stderr, stdout) ⇒ Object



17
18
19
20
21
# File 'lib/spork/server/cucumber.rb', line 17

def run_tests(argv, stderr, stdout)
  require 'cucumber/cli/main'
  ::Cucumber::Cli::Main.step_mother = @step_mother
  ::Cucumber::Cli::Main.new(argv, stderr, stdout).execute!(@step_mother)
end