Skip to content

Instantly share code, notes, and snippets.

@timcharper
Created August 15, 2009 18:50
Show Gist options
  • Save timcharper/168423 to your computer and use it in GitHub Desktop.
Save timcharper/168423 to your computer and use it in GitHub Desktop.
some ways to define test frameworks for Spork
# Specifications:
#
# * Spork integration frameworks should not load any dependencies until #run is invoked
# * Name is derived from class name. Cucumber becomes cucumber.
class Spork::TestFramework::Cucumber < Spork::TestFramework
DEFAULT_PORT = 8990
HELPER_FILE = "features/support/env.rb"
ALIASES = %w[cuc cuke]
def run(argv, stderr, stdout)
require 'cucumber/cli/main'
::Cucumber::Cli::Main.new(argv, stdout, stderr).execute!(::Cucumber::StepMother.new)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment