features/publish_results.feature in cucumber-pro-0.0.2 vs features/publish_results.feature in cucumber-pro-0.0.4
- old
+ new
@@ -1,8 +1,13 @@
@announce
Feature: Publish results
+ Background:
+ Given I set the environment variables to:
+ | variable | value |
+ | CUCUMBER_PRO_TOKEN | valid-token |
+
Scenario: A couple of scenarios
Given a git repo
And a feature "features/test.feature" with:
"""
Feature:
@@ -20,9 +25,10 @@
| failed | features/test.feature | 6 |
And the results service should receive these test-case results:
| status | path | location |
| passed | features/test.feature | 2 |
| failed | features/test.feature | 5 |
+ And the stderr should not contain anything
Scenario: A scenario outline
Note that we don't specify how step results will be published. This is because it's hard to get
a location for steps when a scenario outline executes.