Snap, is a continuous integration and deployment(in the cloud) tool.
- Login to Snap and choose
Add repositoryoption to setup a new pipeline by selecting the repository which is a Gauge project.
- Gauge can be installed either by using the portable installer or by using any package manager. If you want to use Gauge installer, you can use a script like this.
If your agent is Linux(RHEL, CentOS), you can install gauge via
yum by adding following commands:
$ echo -e "[gauge-stable]\nname=gauge-stable\nbaseurl=http://dl.bintray.com/gauge/gauge-rpm/gauge-stable\ngpgcheck=0\nenabled=1" | sudo tee /etc/yum.repos.d/gauge-stable.repo $ sudo yum install gauge $ gauge_setup
More details on installation on all operating systems can be found here.
- Install Gauge language plugin as:
gauge --install <language>
- Add a task which will run
- If you want to run only a subset of specs, you can use tags. Eg.
gauge --tags "tag1 & tag2" specs
- Adding a flag
-pruns them in parallel.
- Run against specific environments using the
See the Gauge CLI for list of all flags that can be used.
Gauge generates html-report after execution whose location can be set by environment variable
gauge_reports_dir. This defaults to
reportsdirectory in the Gauge project.
You can add Gauge execution reports as
artifactsin Snap so that it can be downloaded after the stage run.
Console output can be seen while execution of stage.