Created
August 15, 2009 18:50
-
-
Save timcharper/168423 to your computer and use it in GitHub Desktop.
some ways to define test frameworks for Spork
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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