Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add a new feature for file:line

  • Loading branch information...
commit ae6f53e4f5ddb7c68de5983134f9bd67b226325b 1 parent 083176c
@mattwynne mattwynne authored
View
436 features/.cucumber/stepdefs.json
@@ -21,60 +21,6 @@
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:15",
"steps": [
{
- "name": "a file named \"features/doc_string.feature\" with:",
- "args": [
- {
- "offset": 14,
- "val": "features/doc_string.feature"
- }
- ]
- },
- {
- "name": "a file named \"features/f.feature\" with:",
- "args": [
- {
- "offset": 14,
- "val": "features/f.feature"
- }
- ]
- },
- {
- "name": "a file named \"features/only_background_and_hooks.feature\" with:",
- "args": [
- {
- "offset": 14,
- "val": "features/only_background_and_hooks.feature"
- }
- ]
- },
- {
- "name": "a file named \"features/only_background_and_hooks_steps.rb\" with:",
- "args": [
- {
- "offset": 14,
- "val": "features/only_background_and_hooks_steps.rb"
- }
- ]
- },
- {
- "name": "a file named \"features/step_definitions/doc_string_steps.rb\" with:",
- "args": [
- {
- "offset": 14,
- "val": "features/step_definitions/doc_string_steps.rb"
- }
- ]
- },
- {
- "name": "a file named \"features/step_definitions/multiline_steps.rb\" with:",
- "args": [
- {
- "offset": 14,
- "val": "features/step_definitions/multiline_steps.rb"
- }
- ]
- },
- {
"name": "a file named \"features/step_definitions/steps.rb\" with:",
"args": [
{
@@ -84,29 +30,11 @@
]
},
{
- "name": "a file named \"features/support/hooks.rb\" with:",
- "args": [
- {
- "offset": 14,
- "val": "features/support/hooks.rb"
- }
- ]
- },
- {
- "name": "a file named \"features/support/jb/formatter.rb\" with:",
- "args": [
- {
- "offset": 14,
- "val": "features/support/jb/formatter.rb"
- }
- ]
- },
- {
- "name": "a file named \"features/support/ze/formator.rb\" with:",
+ "name": "a file named \"features/test.feature\" with:",
"args": [
{
"offset": 14,
- "val": "features/support/ze/formator.rb"
+ "val": "features/test.feature"
}
]
}
@@ -190,173 +118,11 @@
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:56",
"steps": [
{
- "name": "I run `cucumber -f stepdefs --dry-run`",
- "args": [
- {
- "offset": 7,
- "val": "cucumber -f stepdefs --dry-run"
- }
- ]
- },
- {
- "name": "I run `cucumber -f usage --dry-run`",
- "args": [
- {
- "offset": 7,
- "val": "cucumber -f usage --dry-run"
- }
- ]
- },
- {
- "name": "I run `cucumber -q -t @one -t @three features/tagulicious.feature`",
- "args": [
- {
- "offset": 7,
- "val": "cucumber -q -t @one -t @three features/tagulicious.feature"
- }
- ]
- },
- {
- "name": "I run `cucumber -q -t @one,@three features/tagulicious.feature`",
- "args": [
- {
- "offset": 7,
- "val": "cucumber -q -t @one,@three features/tagulicious.feature"
- }
- ]
- },
- {
- "name": "I run `cucumber -q features/background_tagged_before_on_outline.feature`",
- "args": [
- {
- "offset": 7,
- "val": "cucumber -q features/background_tagged_before_on_outline.feature"
- }
- ]
- },
- {
- "name": "I run `cucumber -q features/failing_background.feature`",
- "args": [
- {
- "offset": 7,
- "val": "cucumber -q features/failing_background.feature"
- }
- ]
- },
- {
- "name": "I run `cucumber -q features/failing_background_after_success.feature`",
- "args": [
- {
- "offset": 7,
- "val": "cucumber -q features/failing_background_after_success.feature"
- }
- ]
- },
- {
- "name": "I run `cucumber -q features/multiline_args_background.feature`",
- "args": [
- {
- "offset": 7,
- "val": "cucumber -q features/multiline_args_background.feature"
- }
- ]
- },
- {
- "name": "I run `cucumber -q features/passing_background.feature:9`",
- "args": [
- {
- "offset": 7,
- "val": "cucumber -q features/passing_background.feature:9"
- }
- ]
- },
- {
- "name": "I run `cucumber -q features/passing_background.feature`",
- "args": [
- {
- "offset": 7,
- "val": "cucumber -q features/passing_background.feature"
- }
- ]
- },
- {
- "name": "I run `cucumber -q features/pending_background.feature`",
- "args": [
- {
- "offset": 7,
- "val": "cucumber -q features/pending_background.feature"
- }
- ]
- },
- {
- "name": "I run `cucumber -q features/scenario_outline_failing_background.feature`",
- "args": [
- {
- "offset": 7,
- "val": "cucumber -q features/scenario_outline_failing_background.feature"
- }
- ]
- },
- {
- "name": "I run `cucumber -q features/scenario_outline_passing_background.feature`",
- "args": [
- {
- "offset": 7,
- "val": "cucumber -q features/scenario_outline_passing_background.feature"
- }
- ]
- },
- {
- "name": "I run `cucumber -q features/tagulicious.feature`",
- "args": [
- {
- "offset": 7,
- "val": "cucumber -q features/tagulicious.feature"
- }
- ]
- },
- {
- "name": "I run `cucumber features/f.feature:2`",
- "args": [
- {
- "offset": 7,
- "val": "cucumber features/f.feature:2"
- }
- ]
- },
- {
- "name": "I run `cucumber features/f.feature:6`",
- "args": [
- {
- "offset": 7,
- "val": "cucumber features/f.feature:6"
- }
- ]
- },
- {
- "name": "I run `cucumber features/failing_hard.feature`",
+ "name": "I run `cucumber features/test.feature:5 -f progress`",
"args": [
{
"offset": 7,
- "val": "cucumber features/failing_hard.feature"
- }
- ]
- },
- {
- "name": "I run `cucumber features/only_background_and_hooks.feature`",
- "args": [
- {
- "offset": 7,
- "val": "cucumber features/only_background_and_hooks.feature"
- }
- ]
- },
- {
- "name": "I run `cucumber`",
- "args": [
- {
- "offset": 7,
- "val": "cucumber"
+ "val": "cucumber features/test.feature:5 -f progress"
}
]
}
@@ -407,15 +173,7 @@
"flags": "",
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:82",
"steps": [
- {
- "name": "the output should contain \"WARNING\"",
- "args": [
- {
- "offset": 27,
- "val": "WARNING"
- }
- ]
- }
+
]
},
{
@@ -447,12 +205,7 @@
"flags": "",
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:98",
"steps": [
- {
- "name": "the output should contain:",
- "args": [
- ]
- }
]
},
{
@@ -517,15 +270,6 @@
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:134",
"steps": [
{
- "name": "it should fail with:",
- "args": [
- {
- "offset": 10,
- "val": "fail"
- }
- ]
- },
- {
"name": "it should pass with:",
"args": [
{
@@ -541,24 +285,7 @@
"flags": "",
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:138",
"steps": [
- {
- "name": "it should fail with exactly:",
- "args": [
- {
- "offset": 10,
- "val": "fail"
- }
- ]
- },
- {
- "name": "it should pass with exactly:",
- "args": [
- {
- "offset": 10,
- "val": "pass"
- }
- ]
- }
+
]
},
{
@@ -806,87 +533,7 @@
"flags": "",
"file_colon_line": "features/step_definitions/cucumber_steps.rb:1",
"steps": [
- {
- "name": "I run cucumber \"--format json features/doc_string.feature\"",
- "args": [
- {
- "offset": 16,
- "val": "--format json features/doc_string.feature"
- }
- ]
- },
- {
- "name": "I run cucumber \"--format json features/one_passing_one_failing.feature\"",
- "args": [
- {
- "offset": 16,
- "val": "--format json features/one_passing_one_failing.feature"
- }
- ]
- },
- {
- "name": "I run cucumber \"-b --format json features/embed.feature\"",
- "args": [
- {
- "offset": 16,
- "val": "-b --format json features/embed.feature"
- }
- ]
- },
- {
- "name": "I run cucumber \"features/f.feature --format Jb::Formatter\"",
- "args": [
- {
- "offset": 16,
- "val": "features/f.feature --format Jb::Formatter"
- }
- ]
- },
- {
- "name": "I run cucumber \"features/f.feature --format Ze::Formator\"",
- "args": [
- {
- "offset": 16,
- "val": "features/f.feature --format Ze::Formator"
- }
- ]
- },
- {
- "name": "I run cucumber \"features/foo.feature\"",
- "args": [
- {
- "offset": 16,
- "val": "features/foo.feature"
- }
- ]
- },
- {
- "name": "I run cucumber \"features/one_passing_one_failing.feature -r features -f rerun\"",
- "args": [
- {
- "offset": 16,
- "val": "features/one_passing_one_failing.feature -r features -f rerun"
- }
- ]
- },
- {
- "name": "I run cucumber \"features/sample.feature --tags ~@wip\"",
- "args": [
- {
- "offset": 16,
- "val": "features/sample.feature --tags ~@wip"
- }
- ]
- },
- {
- "name": "I run cucumber \"features/sample.feature -r features --tags ~@wip\"",
- "args": [
- {
- "offset": 16,
- "val": "features/sample.feature -r features --tags ~@wip"
- }
- ]
- }
+
]
},
{
@@ -894,24 +541,7 @@
"flags": "",
"file_colon_line": "features/step_definitions/cucumber_steps.rb:5",
"steps": [
- {
- "name": "it should fail with JSON:",
- "args": [
- {
- "offset": 10,
- "val": "fail"
- }
- ]
- },
- {
- "name": "it should pass with JSON:",
- "args": [
- {
- "offset": 10,
- "val": "pass"
- }
- ]
- }
+
]
},
{
@@ -919,12 +549,7 @@
"flags": "",
"file_colon_line": "features/step_definitions/cucumber_steps.rb:19",
"steps": [
- {
- "name": "a directory without standard Cucumber project directory structure",
- "args": [
- ]
- }
]
},
{
@@ -932,12 +557,7 @@
"flags": "",
"file_colon_line": "features/step_definitions/cucumber_steps.rb:25",
"steps": [
- {
- "name": "a scenario with a step that looks like this:",
- "args": [
- ]
- }
]
},
{
@@ -945,12 +565,7 @@
"flags": "",
"file_colon_line": "features/step_definitions/cucumber_steps.rb:31",
"steps": [
- {
- "name": "a step definition that looks like this:",
- "args": [
- ]
- }
]
},
{
@@ -958,15 +573,7 @@
"flags": "",
"file_colon_line": "features/step_definitions/cucumber_steps.rb:35",
"steps": [
- {
- "name": "I run the feature with the progress formatter",
- "args": [
- {
- "offset": 27,
- "val": "progress"
- }
- ]
- }
+
]
},
{
@@ -974,12 +581,7 @@
"flags": "",
"file_colon_line": "features/step_definitions/drb_steps.rb:1",
"steps": [
- {
- "name": "I am running spork in the background",
- "args": [
- ]
- }
]
},
{
@@ -987,15 +589,7 @@
"flags": "",
"file_colon_line": "features/step_definitions/iso-8859-1_steps.rb:6",
"steps": [
- {
- "name": "jeg drikker en \"øl\"",
- "args": [
- {
- "offset": 16,
- "val": "øl"
- }
- ]
- }
+
]
},
{
@@ -1003,15 +597,7 @@
"flags": "",
"file_colon_line": "features/step_definitions/iso-8859-1_steps.rb:10",
"steps": [
- {
- "name": "skal de andre si \"skål\"",
- "args": [
- {
- "offset": 18,
- "val": "skål"
- }
- ]
- }
+
]
}
]
View
26 features/run_specific_scenarios.feature
@@ -0,0 +1,26 @@
+Feature: Run specific scenarios
+
+ You can choose to run a specific scenario using the file:line format
+
+ Background:
+ Given a file named "features/step_definitions/steps.rb" with:
+ """
+ Given(/pass/) {}
+ """
+
+ Scenario: Two scenarios, run just one of them
+ Given a file named "features/test.feature" with:
+ """
+ Feature: Test
+ Scenario: Miss
+ Given this is undefined
+
+ Scenario: Hit
+ Given this passes
+ """
+ When I run `cucumber features/test.feature:5 -f progress`
+ Then it should pass with:
+ """
+ 1 scenario (1 passed)
+ """
+
Please sign in to comment.
Something went wrong with that request. Please try again.