getgauge / gauge-js

JavaScript language plugin for Gauge
MIT License
81 stars 39 forks source link
gauge gauge-plugin test-automation

Gauge-JS

Actions 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_simple

Taiko

Run the following command to create a sample Taiko template

$ gauge init js

Alternate Installation options

Install specific version

gauge install js --version <version>

Install from zip file

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

You can then install the offline zip archive created using

gauge install js --file gauge-js-<version>.zip

Copyright

Copyright 2018 ThoughtWorks, Inc.