Skip to content
Apoorva-GA edited this page Oct 15, 2019 · 4 revisions

Gauge Setup

Gauge can be installed by

Building from source

Prerequisite Tools

Ensure golang dev environment is setup. GOPATH environment variable should be set. Add $GOPATH/bin to $PATH

  • Clone the gauge repository to $GOPATH/src/github.com/getgauge/gauge

  • Gauge uses submodules. So issue the following commands before you attempt to build

  git submodule init
  git submodule update

Fetch all dependencies using

  go get ./...

Building

go run build/make.go

This will generate gauge in the bin directory

Running Tests

go test -v ./...

or

go run build/make.go --test

With Test coverage

go run build/make.go --test --coverage

Installing

MacOS and Linux

go run build/make.go --install

This installs gauge into /usr/local by default. To install into a custom location use a prefix for installation

go run build/make.go --install --prefix CUSTOM_PATH

Windows

go run build\make.go --install --prefix CUSTOM_PATH

Refer here for more information on installing plugins, initialising a project, other installation methods etc.