Sha256: 32815817c7d088944f8c1b4d837cd626b6cef1cc63c7dfa4d9c3c1d8f451510b
Contents?: true
Size: 1.38 KB
Versions: 3
Compression:
Stored size: 1.38 KB
Contents
require "rubygems" require "features" current_dir = File.dirname(File.expand_path(__FILE__)) # pass in config options directly as a hash. What follows are the possible keys: # # :feature_files_path # The path to the directory containing your plaintext user stories files # # :feature_file_suffix # A suffix to the plaintext user stories filenames. The default is .feature. Ommit the dot! # # :test_cases_file # The path to the file that holds the tests generated by features. # # :features_helper # The path to the file that will be required inside the test_cases_file. # # :feature_keyword # The keyword that is prepended to the User Stories title. Defaults to 'Feature:'. With colon. # # :scenario_keyword # The keyword that is prepended to the Scenario or Acceptance tests titles. Defaults to 'Scenario:'. With colon. # # :given_scenario_keyword # The keyword that identifies a Scenario to be reused inside another Scenario. Defaults to 'GivenScenario:'. With colon. # # :project_name # The project name will be shown at the top of the html output. Defaults to 'Features'. suite = RailsSuite.new({ :feature_files_path => current_dir, :test_cases_file => current_dir + "/support/test_cases_file.rb", :features_helper => current_dir + "/support/features_helper.rb" }) suite.run results = `ruby #{suite.test_cases_file}` puts results suite.parse_results_and_open_in_safari(results)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
features-0.3.0 | generators/features/templates/run_features.rb |
features-0.2.1 | generators/features/templates/run_features.rb |
features-0.2.0 | generators/features/templates/run_features.rb |