Skip to content

Latest commit

 

History

History
71 lines (48 loc) · 2.34 KB

teamcity.rst

File metadata and controls

71 lines (48 loc) · 2.34 KB

topic

Tutorial: Integrating Gauge with TeamCity

Setup

  • Download and Install Gauge <installation-instructions> on the agents.
  • Install the required gauge language plugin <install_plugins> on the agents.

Tips on Installation

  • Gauge is installed system wide by default and not user wide. However, plugins are installed per user. So plugins should be installed via user account with which the TeamCity executes. Refer default install location of Gauge and its plugins <installation-faq>.
  • Alternately, you can set custom location for plugins <custom-plugin-installation> so that its accessible to TeamCity agent running as a different user.

Create execution task

  • Create a new project in TeamCity pointing to Gauge project repository URL.
  • Add a build step which will run gauge run specs.

    image

  • If you want to run only a subset of specs, you can use tagged_execution.

    Eg. gauge run --tags tag1 & tag2 specs

  • Adding a flag -p runs them using parallel_execution.
  • Run against specific environments using the --env flag
  • See the Manpage for list of all the flags that can be used.

Reports

  • 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.

    artifactartifact
  • 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.

    reportsTabreportsTab
  • Console output can be seen while execution of steps and reports can be seen after execution.