1.2.2 • Published 3 years ago

@escape.tech/cli v1.2.2

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
3 years ago

Escape's NodeJS CLI

A CLI tool for automatically building OpenAPI descriptions and assess route testing coverage directly from local testing environment !

Installation

npm install -g @escape.tech/cli

Configuration

The CLI needs to access the following information in order to work properly

  • The test framework used by the project
  • The HTTP library used by the project
  • The key of the project in the Escape app

These information can easily be provided by using the escape init command

escape init

You will see the following prompter

escape | Escape CLI is up-to-date, happy fuzzing !

    ___     ___     ___     ___     ___     ___
   /\  \   /\  \   /\  \   /\  \   /\  \   /\  \
  /::\  \ /::\  \ /::\  \ /::\  \ /::\  \ /::\  \
 /::\:\__/\:\:\__/:/\:\__/::\:\__/::\:\__/::\:\__\
 \:\:\/  \:\:\/__\:\ \/__\/\::/  \/\::/  \:\:\/  /
  \:\/  / \::/  / \:\__\   /:/  /   \/__/ \:\/  /
   \/__/   \/__/   \/__/   \/__/           \/__/

? What test runner do you use for this project : Mocha
? What http library do you use for this project : Express
? Please enter the escape key url for the project : http://api.escape.tech/someKey

This command writes the configuration parameters you entered in .escaperc.json file at the root of your project. This file will be read by the CLI for further usage.

Matrix of currently supported libraries and frameworks

HTTP lib / Test FrameworkJest v26.xx.xxMocha v8.xx.xxJasmine
ExpressJS v4.xx.xxcover supported, scan supportedcover supported, scan supportedNot supported yet
KoaJS v2.xx.xxcover supported, scan supportedcover supported, scan supportedNot supported yet
KoaJS v2.xx.xxcover supported, scan supportedcover supported, scan supportedNot supported yet

Usage

The CLI is used as a prefix for launching test commands :

⚠️ Launching commands using npm is not fully supported yet ! ⚠️

⚠️ Launching commands after a transformer (babel-node/ts-node) is not fully supported yet ! ⚠️

# Example with Grunt (Mocha test runner)
escape scan grunt validate
escape cover grunt validate
# Tests will be executed using Escape's patches

# Example with Jest
escape scan jest --forceExit --detectOpenHandles .

Contributing

Contribution guide

1.3.0-beta.12

3 years ago

1.3.0-beta.10

3 years ago

1.3.0-beta.11

3 years ago

1.3.0-beta.6

3 years ago

1.3.0-beta.7

3 years ago

1.3.0-beta.8

3 years ago

1.3.0-beta.9

3 years ago

1.3.0-beta.5

3 years ago

1.3.0-beta.3

3 years ago

1.3.0-beta.4

3 years ago

1.2.2

3 years ago

1.3.0-beta.2

3 years ago

1.2.0

3 years ago

1.2.1

3 years ago

1.3.0-beta.1

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.0-beta.19

3 years ago

1.0.0-beta.18

3 years ago

1.0.0-beta.17

3 years ago

1.0.0-beta.16

3 years ago

1.0.0-beta.11

3 years ago

1.0.0-beta.12

3 years ago

1.0.0-beta.10

3 years ago

1.0.0-beta.15

3 years ago

1.0.0-beta.13

3 years ago

1.0.0-beta.14

3 years ago

1.0.0

3 years ago

1.0.0-beta.2

3 years ago

1.0.0-beta.3

3 years ago

1.0.0-beta.4

3 years ago

1.0.0-beta.1

3 years ago

1.0.0-beta.6

3 years ago

1.0.0-beta.7

3 years ago

1.0.0-beta.8

3 years ago

0.0.4-beta

3 years ago

1.0.0-beta.9

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago