Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
+ Add a plain file that matches what @akostadinov described.
+ Add a empty file based on @mikz's instructions.
  • Loading branch information
erran committed Dec 2, 2014
0 parents commit 0c7cf2a
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source 'https://rubygems.org/'

gem 'cucumber', '>= 2.0.0.beta.3'
24 changes: 24 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
GEM
remote: https://rubygems.org/
specs:
builder (3.2.2)
cucumber (2.0.0.beta.3)
builder (>= 2.1.2)
cucumber-core (~> 1.0.0.beta.3)
diff-lcs (>= 1.1.3)
gherkin (~> 2.12)
multi_json (>= 1.7.5, < 2.0)
multi_test (>= 0.1.1)
cucumber-core (1.0.0.beta.3)
gherkin (~> 2.12.0)
diff-lcs (1.2.5)
gherkin (2.12.2)
multi_json (~> 1.3)
multi_json (1.10.1)
multi_test (0.1.1)

PLATFORMS
ruby

DEPENDENCIES
cucumber (>= 2.0.0.beta.3)
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Reproduction for [#771](https://github.com/cucumber/cucumber/issues/771)
An example use case that reproduces cucumber/cucumber#771. The file `nested.feature` has valid Gherkin while the file `buckets.feature` is empty.

The following usages of cucumber fail with or without the `--tags` option. These all load the empty file [features/api/buckets.feature](features/api/buckets.feature).

## Failing
* `cucumber`
* `cucumber --tags @pry`
* `cucumber features/api/`
* `cucumber features/api/buckets.feature`

## Passing
* `cucumber --exclude features/api/buckets.feature`
* `cucumber --exclude features/subdirectory/nested.feature`

This comment has been minimized.

Copy link
@erran

erran Dec 2, 2014

Author Owner

This usage actually fails updated here: 535d0ac

Empty file added features/api/buckets.feature
Empty file.
11 changes: 11 additions & 0 deletions features/subdirectory/nested.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@pry
Feature: A nested file
As a Cucumber user
I want to use subdirectories
So that I can better organize my feature files

Scenario: A plain-old scenario
Given I have a feature file
And I wrote a scenario
When I run `cucumber features/subdirectory/nested.feature`
Then I should see cucumber run successfully
11 changes: 11 additions & 0 deletions features/subdirectory/step_definitions/nested_steps.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Given(/^I have a feature file$/) do
end

Given(/^I wrote a scenario$/) do
end

When(/^I run `cucumber features\/subdirectory\/nested\.feature`$/) do
end

Then(/^I should see cucumber run successfully$/) do
end

0 comments on commit 0c7cf2a

Please sign in to comment.