Last active
February 28, 2016 08:20
-
-
Save TimMurphy/64b39ee13cd575e449ae to your computer and use it in GitHub Desktop.
Versioning with Git & Continuous integration
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
Feature: Developer can request current branch to be published | |
As a developet | |
I want tell to the CI to publish the current branch | |
# git describe --tags --long | |
# http://stackoverflow.com/a/1064505/22941 | |
Scenario Outline: Publish master branch with valid arguments | |
Given the current branch is master | |
When npm publish <bumpLevel> is called | |
Then branch publish/master/<bumpLevel> is created and pushed to origin | |
Examples: | |
| bumpLevel | | |
| major | | |
| minor | | |
| patch | | |
Scenario Outline: Publish master branch with invalid bumpLevel | |
Given the current branch is master | |
When npm publish <invalidBumpLevel> is called | |
Then an error is thrown | |
And correct usage is displayed | |
Examples: | |
| bumpLevel | | |
| not=major | | |
| not=minor | | |
| not=patch | | |
Scenario: other than master branch | |
Given todo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment