-
-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resolves #188: git-ship with no shippable changes
- Loading branch information
charlierudolph
committed
Nov 30, 2014
1 parent
2ef502b
commit 52fd94e
Showing
9 changed files
with
68 additions
and
46 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Feature: Git Ship: errors when the branch diff is empty | ||
|
||
Background: | ||
Given I have a feature branch named "feature" | ||
And the following commit exists in my repository | ||
| branch | location | file name | file content | | ||
| main | remote | common_file | common content | | ||
| feature | local | common_file | common content | | ||
And I am on the "feature" branch | ||
When I run `git ship -m 'feature done'` while allowing errors | ||
|
||
|
||
Scenario: result | ||
Then I get the error "The branch 'feature' has no shippable changes" | ||
And I am still on the "feature" branch |
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
17 changes: 17 additions & 0 deletions
17
features/git-ship/supplied_branch/no_diff_with_open_changes.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,17 @@ | ||
Feature: Git Ship: errors when the branch diff is empty with open changes | ||
|
||
Background: | ||
Given I have feature branches named "feature" and "other_feature" | ||
And the following commit exists in my repository | ||
| branch | location | file name | file content | | ||
| main | remote | common_file | common content | | ||
| feature | local | common_file | common content | | ||
And I am on the "other_feature" branch | ||
And I have an uncommitted file with name: "uncommitted" and content: "stuff" | ||
When I run `git ship feature` while allowing errors | ||
|
||
|
||
Scenario: result | ||
Then I get the error "The branch 'feature' has no shippable changes" | ||
And I am still on the "other_feature" branch | ||
And I still have an uncommitted file with name: "uncommitted" and content: "stuff" |
15 changes: 15 additions & 0 deletions
15
features/git-ship/supplied_branch/no_diff_without_open_changes.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,15 @@ | ||
Feature: Git Ship: errors when the branch diff is empty without open changes | ||
|
||
Background: | ||
Given I have feature branches named "feature" and "other_feature" | ||
And the following commit exists in my repository | ||
| branch | location | file name | file content | | ||
| main | remote | common_file | common content | | ||
| feature | local | common_file | common content | | ||
And I am on the "other_feature" branch | ||
When I run `git ship feature` while allowing errors | ||
|
||
|
||
Scenario: result | ||
Then I get the error "The branch 'feature' has no shippable changes" | ||
And I am still on the "other_feature" branch |
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
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