Create a new project in TeamCity pointing to Gauge project repository URL.
Add a build step which will run gauge run specs.
Eg. gauge run –tags tag1 & tag2 specs
Adding a flag -p runs them using Parallel execution.
Run against specific Using environments in a Gauge project using the –env flag
See the Manpage for list of all the flags that can be used.
Gauge generates html-reports after execution which can be configured in TeamCity by adding a new artifact in Artifacts tab. These artifacts can be viewed/downloaded from the artifacts tab.
artifact¶
You can also add a custom tab to view your html reports generated.
To add custom tab, go to Project Settings -> Report tabs -> Add a new build report tab.
reportsTab¶
Console output can be seen while execution of steps and reports can be seen after execution.