Skip to content

SCMStepdefs

Antoine Neveux edited this page Feb 5, 2015 · 1 revision

#SCM Stepdefs

Version 1.0, written by aneveux, generated by Docukes on Thu Feb 05 18:39:14 CET 2015

##Description

SCMStepdefs are all the step definitions you can use in your cucumberfeatures in order to interact with SCMs. It allows you to retrieve Git, Hg,and SVN repositories, and to perform various actions with them.

##Stepdefs

###clone A Git Repository

Syntax: Given: "^the git repository located in \"([^\"]*)\" is cloned into \"([^\"]*)\"$"

Documentation:

Allows to clone a remote Git repository into the specified location

###clone A Mercurial Repository

Syntax: Given: "^the mercurial repository located in \"([^\"]*)\" is cloned into \"([^\"]*)\"$"

Documentation:

Allows to clone a remote Hg repository into the specified location

###commit And Push In A Git Repository

Syntax: Then: "^I commit and push the Git repository located in \"([^\"]*)\" with the message \"([^\"]*)\"$"

Documentation:

Allows to execute a git commit & a git push command in the specifiedrepository using the message provided as a commit message

###commit And Push In A Mercurial Repository

Syntax: Then: "^I commit and push the Mercurial repository located in \"([^\"]*)\" to \"([^\"]*)\" with the message \"([^\"]*)\"$"

Documentation:

Allows to execute a hg commit command & a hg push in the specifiedrepository using the message provided as a commit message

###checkout An SVN Repository

Syntax: Given: "^the svn repository located in \"([^\"]*)\" is checked out into \"([^\"]*)\"$"

Documentation:

Allows to checkout a SVN repository into the specified location

###commit In An SVN Repository

Syntax: Then: "^I commit the SVN repository located in \"([^\"]*)\" with the message \"([^\"]*)\"$"

Documentation:

Allows to execute a svn commit command from a specified location usingthe provided message as a commit message

Clone this wiki locally