JavaScript language plugin for Gauge
Clone or download
NivedhaSenthil Merge pull request #178 from getgauge/offline_project
Fixed to run js project without package.json
Latest commit 644bdc4 Dec 13, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs Add configuration of the gauge-js to define tests #48 Dec 26, 2017
examples Fixing init command Oct 16, 2017
gauge-proto @ 5dc343c Renamed field failedScreenshot to failureScreenshot Aug 13, 2018
scripts removing jscs and jshint in favour of eslint Oct 18, 2018
skel scaning only dirs specified in STEP_IMPL_DIR env. removed config rege… Mar 5, 2018
src Fixed lint errors, #176 Dec 4, 2018
test Skipped failing test on node version 11+, #176 Dec 12, 2018
.editorconfig Add .editorconfig Jan 6, 2016
.eslintrc.json removing jscs and jshint in favour of eslint Oct 18, 2018
.gitattributes Changing scripts to work with windows Oct 16, 2017
.gitignore Step registry caches duplicate step file locations (#72) Nov 15, 2017
.gitmodules Updating the gauge-proto module url to https Nov 27, 2015
.node-inspectorrc Add debugging support for Windows. Ref #18 Feb 19, 2016
.npmrc Installing dependencies in post install command. Apr 13, 2018
.travis.yml running tests in node lts. May 7, 2018
CONTRIBUTING.md Add download instructions to CONTRIBUTING Feb 25, 2016
LICENSE Adding MIT license Jan 16, 2018
README.md fixing links Nov 7, 2018
appveyor.yml npm audit fix. Oct 17, 2018
debug.bat Support launching debugger in Windows. Ref #18 Feb 18, 2016
index.bat Revert "Using node to start plugin instead of shebang" Dec 18, 2017
index.js removing jscs and jshint in favour of eslint Oct 18, 2018
js.json Bumped up version for further development. Oct 23, 2018
package-lock.json update package lock to fix dependency security vulnerabilities Nov 12, 2018
package.json Bumped up version for further development. Oct 23, 2018

README.md

Gauge-JS

Build Status - Travis CI Build status

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.