Permalink
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (16 sloc) 606 Bytes
module Specjour
module Cucumber
module Runner
def self.run(feature, output)
cli = ::Cucumber::Cli::Main.new( %w[--profile specjour --format Specjour::Cucumber::DistributedFormatter ] + [feature], output)
Preloader.load(feature) if Cucumber.runtime.nil?
Cucumber.runtime.instance_variable_set(:@configuration, cli.configuration)
Cucumber.runtime.instance_eval do
tree_walker = @configuration.build_tree_walker(self)
self.visitor = tree_walker
tree_walker.visit_features(features)
end
end
end
end
end