0.0.20 • Published 5 years ago

hull-connector-tester v0.0.20

Weekly downloads
9
License
MIT
Repository
-
Last release
5 years ago

Hull Connector Tester

This is a cli utility which runs multiple checks on the connector code base to make sure it complies with official Hull Connector standards.

When any of the check fails the command exits with error code to fail CI job. The main goal of the tool is to easily enforce specific best standards across wide connectors code base.

You can think of it as code quality check tool, maybe we will even have badges/shields (as http://shields.io/) in future :)

Continuous Integration usage

All official Hull connectors run latest version of hull-connector-tester on each CI build.

This is how the Circle CI configuration file (.circleci/config.yml) last step looks like:

- run: npm i --no-save --no-cache hull-connector-tester@latest && ./node_modules/.bin/hull-connector-tester

Manual usage

To manually test the Connector code base, the tool should be installed globally and run in connector directory:

cd hull-connector-name/

npm i -g --no-cache hull-connector-tester@latest && hull-connector-tester

What are current checks?

Please review all files in src/checks directory. Each function perform one check and the purpose is descibed in the docblock.

How to add new check?

  1. Add new file in src/checks directory with the name of the check
  2. Create a function taking no arguments and returning true in case of success or string in case of error with the error message
  3. Export this new check in src/checks/index.js
  4. Bump version and update CHANGELOG.md
0.0.20

5 years ago

0.0.19

6 years ago

0.0.18

6 years ago

0.0.17

6 years ago

0.0.16

6 years ago

0.0.15

6 years ago

0.0.14

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago