Skip to content

Instantly share code, notes, and snippets.

@mattwynne
Created September 2, 2010 22:43
Show Gist options
  • Select an option

  • Save mattwynne/563100 to your computer and use it in GitHub Desktop.

Select an option

Save mattwynne/563100 to your computer and use it in GitHub Desktop.
$:.unshift(File.dirname(__FILE__) + '/lib') unless $:.include?(File.dirname(__FILE__) + '/lib')
#TODO: Why not just cucumber!!!
require 'cucumber/cli/main'
class TagExpression
def limits
[]
end
end
class Configuration
def options
{ :tag_expression => TagExpression.new }
end
def support_to_load
[]
end
def step_defs_to_load
[]
end
def feature_files
[]
end
def build_runner(step_mother, io)
Cucumber::Ast::TreeWalker.new(step_mother, formatters, @options, nil)
end
def formatters
[]
end
def wip?
false
end
def strict?
false
end
end
configuration = Configuration.new
runtime = Cucumber::Runtime.new(configuration)
result = runtime.run
result.failure?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment