-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+ Add a plain file that matches what @akostadinov described. + Add a empty file based on @mikz's instructions.
- Loading branch information
0 parents
commit 0c7cf2a
Showing
6 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Sorry, something went wrong. |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This usage actually fails updated here: 535d0ac