Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
106 additions
and
73 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,71 @@ | |||
Feature: QA | |||
|
|||
Scenario: QA issue | |||
Given a fresh set of repositories | |||
When I cd to the user repo | |||
And I execute gitcycle branch with a new URL or string | |||
And I give default input | |||
And gitcycle runs | |||
And I commit something | |||
And I execute gitcycle with "ready" | |||
And gitcycle runs | |||
And I cd to the owner repo | |||
And I checkout master | |||
And I execute gitcycle with "qa issue.id" | |||
And I enter "y" | |||
And gitcycle runs | |||
Then output includes | |||
""" | |||
Do you want to create a QA branch from 'master'? (y/n) | |||
Retrieving branch information from gitcycle. | |||
Adding remote repo 'config.owner/config.repo'. | |||
Fetching remote 'config.owner'. | |||
Checking out remote branch 'qa_master_config.user' from 'config.owner/config.repo/master'. | |||
Fetching remote 'origin'. | |||
Pushing 'origin/qa_master_config.user'. | |||
Adding remote repo 'config.user/config.repo'. | |||
Fetching remote 'config.user'. | |||
Merging remote branch 'ticket.id' from 'config.user/config.repo'. | |||
Pushing branch 'qa_master_config.user'. | |||
Type 'gitc qa pass' to approve all issues in this branch. | |||
Type 'gitc qa fail' to reject all issues in this branch. | |||
""" | |||
|
|||
Scenario: QA issue pass | |||
Given a fresh set of repositories | |||
When I cd to the user repo | |||
And I execute gitcycle branch with a new URL or string | |||
And I give default input | |||
And gitcycle runs | |||
And I commit something | |||
And I execute gitcycle with "ready" | |||
And gitcycle runs | |||
And I cd to the owner repo | |||
And I checkout master | |||
And I execute gitcycle with "qa issue.id" | |||
And I enter "y" | |||
And gitcycle runs | |||
And I checkout qa_master_config.user | |||
And I execute gitcycle with "qa pass" | |||
Then gitcycle runs | |||
And output includes | |||
""" | |||
Retrieving branch information from gitcycle. | |||
Checking out branch 'master'. | |||
Adding remote repo 'config.user/config.repo'. | |||
Fetching remote 'config.user'. | |||
Merging remote branch 'ticket.id' from 'config.user/config.repo'. | |||
Pushing branch 'master'. | |||
Labeling all issues as 'Pass'. | |||
""" | |||
|
|||
Scenario: QA issue list | |||
When I cd to the owner repo | |||
And I checkout master | |||
And I execute gitcycle with "qa" | |||
Then gitcycle runs | |||
And output includes | |||
""" | |||
qa_master_config.user | |||
issue #issue.id\tconfig.user/last_ticket.id | |||
""" |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,27 @@ | |||
Feature: Review | |||
|
|||
Scenario: No parameters | |||
Given a fresh set of repositories | |||
When I cd to the user repo | |||
And I execute gitcycle branch with a new URL or string | |||
And I give default input | |||
And gitcycle runs | |||
And I commit something | |||
And I execute gitcycle with "ready" | |||
And gitcycle runs | |||
And I execute gitcycle with "review pass" | |||
And gitcycle runs | |||
Then output includes "Labeling issue as 'Pending QA'." | |||
|
|||
Scenario: Parameters | |||
Given a fresh set of repositories | |||
When I cd to the user repo | |||
And I execute gitcycle branch with a new URL or string | |||
And I give default input | |||
And gitcycle runs | |||
And I commit something | |||
And I execute gitcycle with "ready" | |||
And gitcycle runs | |||
And I execute gitcycle with "review pass issue.id" | |||
And gitcycle runs | |||
Then output includes "Labeling issues as 'Pending QA'." |
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