https://github.com/featurist/cucumber-parallel
Runs cucumber scenarios in parallel
https://github.com/featurist/cucumber-parallel
Last synced: 10 months ago
JSON representation
Runs cucumber scenarios in parallel
- Host: GitHub
- URL: https://github.com/featurist/cucumber-parallel
- Owner: featurist
- Created: 2015-10-25T23:59:34.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-10-26T00:11:14.000Z (about 10 years ago)
- Last Synced: 2025-01-20T11:21:54.954Z (12 months ago)
- Language: Ruby
- Size: 129 KB
- Stars: 1
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cucumber-parallel
** Work In Progress! **
## Not much yet, but...
```
> cd examples/calculator
> rake
```
...runs `cucumber_parallel`, which runs each scenario 3 times (or in 3 different
*contexts*) in parallel. The errors from each different context are concatenated
into a single error message, so cucumber formatters work as expected, just with
longer error messages:
```
../../bin/cucumber_parallel
Feature: Calculation
Scenario: Addition # features/calculation.feature:3
Given I start with 1 # features/step_definitions/steps.rb:1
When I add 2 # features/step_definitions/steps.rb:6
Then I have 3 # features/step_definitions/steps.rb:16
Scenario: Multiplication # features/calculation.feature:8
Given I start with 3 # features/step_definitions/steps.rb:1
When I multiply by 5 # features/step_definitions/steps.rb:10
Failed in context 2:
Multiplication failed in context 2 (RuntimeError)
./features/step_definitions/steps.rb:12:in `/^I multiply by (\d+)$/'
features/calculation.feature:10:in `When I multiply by 5'
Failed in context 3:
Multiplication failed in context 3 (RuntimeError)
./features/step_definitions/steps.rb:12:in `/^I multiply by (\d+)$/'
features/calculation.feature:10:in `When I multiply by 5'
(Cucumber::Parallel::ContextFailures)
Then I have 15 # features/step_definitions/steps.rb:16
Scenario: Division # features/calculation.feature:13
Given I start with 18 # features/step_definitions/steps.rb:1
When I divide by 3 # features/calculation.feature:15
Then I have 6 # features/step_definitions/steps.rb:16
Failing Scenarios:
cucumber features/calculation.feature:8 # Scenario: Multiplication
3 scenarios (1 failed, 1 undefined, 1 passed)
9 steps (1 failed, 2 skipped, 1 undefined, 5 passed)
0m0.028s
You can implement step definitions for undefined steps with these snippets:
When(/^I divide by (\d+)$/) do |arg1|
pending # Write code here that turns the phrase above into concrete actions
end
```