Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

file 17 lines (16 sloc) 0.606 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
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
Something went wrong with that request. Please try again.