This repository has been archived by the owner on Nov 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
https://github.com/serenity-bdd/serenity-cucumber/issues/19
- Loading branch information
Showing
4 changed files
with
101 additions
and
1 deletion.
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
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
10 changes: 10 additions & 0 deletions
10
src/test/java/net/serenitybdd/cucumber/integration/FeatureWithMoreIssuesTag.java
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,10 @@ | ||
package net.serenitybdd.cucumber.integration; | ||
|
||
import cucumber.api.CucumberOptions; | ||
import cucumber.api.junit.Cucumber; | ||
import org.junit.runner.RunWith; | ||
|
||
|
||
@RunWith(Cucumber.class) | ||
@CucumberOptions(features="src/test/resources/samples/calculator/basic_arithmetic_more_issues.feature") | ||
public class FeatureWithMoreIssuesTag {} |
18 changes: 18 additions & 0 deletions
18
src/test/resources/samples/calculator/basic_arithmetic_more_issues.feature
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,18 @@ | ||
@foo | ||
@issues:ISSUE-123,ISSUE-789 | ||
Feature: Basic Arithmetic | ||
Calculing additions | ||
|
||
Background: A Calculator | ||
Given a calculator I just turned on | ||
|
||
@issues:ISSUE-456,ISSUE-001 | ||
Scenario: Addition | ||
# Try to change one of the values below to provoke a failure | ||
When I add 4 and 5 | ||
Then the result is 9 | ||
|
||
Scenario: Another Addition | ||
# Try to change one of the values below to provoke a failure | ||
When I add 4 and 7 | ||
Then the result is 11 |