Skip to content

Latest commit

 

History

History
110 lines (76 loc) · 2.69 KB

README.md

File metadata and controls

110 lines (76 loc) · 2.69 KB

Gauge-JS

Build Status - Travis CI Build status Contributor Covenant

This project adds Javascript language plugin for gauge.

Getting started

Pre-requisite

Installation

gauge install js

Create a gauge-js project

gauge init js

Run tests

gauge run specs

Documentation

For other details refer the documentation here

Demos and examples

Plain Javascript

Run the following command to create a sample gauge template

$ gauge init js

Puppeteer

Run the following command to create a sample Puppeteer template

$ gauge init js_puppeteer

WebDriver

Run the following command to create a sample WebDriver template

$ gauge init js_webdriver

Alternate Installation options

Install specific version

gauge install js --version 2.1.0

Offline installation

gauge install js --file gauge-js-2.1.0.zip

Nightly installation

To install js nightly, download the latest nightly from here.

Once you have the downloaded nightly gauge-js-version.nightly-yyyy-mm-dd.zip, install using:

gauge install js -f gauge-js-version.nightly-yyyy-mm-dd.zip

Build from Source

The plugin is authored in Javascript. Gauge is authored in golang. These are independent processes talking to each other over TCP on port GAUGE_INTERNAL_PORT (env variable) using Protobuf.

Pre-Requisites
Compiling
npm install
Run tests:
npm test
Installing from source
npm run installPlugin
Create package
npm run package

Copyright

Copyright 2018 ThoughtWorks, Inc.