Sha256: 696467a100a97b5d4065d64bdeca3eeaf513378db5a05eea7bbff90191ebabd8

Contents?: true

Size: 1.57 KB

Versions: 17

Compression:

Stored size: 1.57 KB

Contents

Feature: Generating a project with TestGen

  Background:
    When I run `testgen project sample`

  Scenario: Creating the top level project directory
    Then a directory named "sample" should exist
    
  Scenario: Generating the cucumber.yml file
    Then a file named "sample/cucumber.yml" should exist
    And the file "sample/cucumber.yml" should contain "default: --no-source --color --format pretty"
    
  Scenario: Generating the Gemfile file
    Then a file named "sample/Gemfile" should exist
    And the file "sample/Gemfile" should contain "gem 'cucumber'"
    And the file "sample/Gemfile" should contain "gem 'rspec'"
    And the file "sample/Gemfile" should contain "source 'http://rubygems.org'"

    
  Scenario: Generating the Rakefile file
    Then a file named "sample/Rakefile" should exist
    And the file "sample/Rakefile" should contain "Cucumber::Rake::Task.new(:features)"
    And the file "sample/Rakefile" should contain exactly:
    """
    require 'rubygems'
    require 'cucumber'
    require 'cucumber/rake/task'

    Cucumber::Rake::Task.new(:features) do |t|
      t.profile = 'default'
    end

    task :default => :features
    """
  Scenario: Creating the features set of directories
    Then the following directories should exist:
      | sample/features                   |
      | sample/features/support           |
      | sample/features/step_definitions  |

  Scenario: Generating the env.rb file
    Then a file named "sample/features/support/env.rb" should exist
    And the file "sample/features/support/env.rb" should contain "require 'rspec-expectations'"

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
testgen-0.8.2 features/testgen_project.feature
testgen-0.8.1 features/testgen_project.feature
cwtestgen-0.1.6 features/testgen_project.feature
cwtestgen-0.1.5 features/testgen_project.feature
cwtestgen-0.1.4 features/testgen_project.feature
cwtestgen-0.1.3 features/testgen_project.feature
cwtestgen-0.1.2 features/testgen_project.feature
cwtestgen-0.1.1 features/testgen_project.feature
cwtestgen-0.1 features/testgen_project.feature
testgen-0.8 features/testgen_project.feature
testgen-0.7 features/testgen_project.feature
testgen-0.6 features/testgen_project.feature
testgen-0.5.2 features/testgen_project.feature
testgen-0.5.1 features/testgen_project.feature
testgen-0.5 features/testgen_project.feature
testgen-0.4 features/testgen_project.feature
testgen-0.3 features/testgen_project.feature