Install globally with npm:
npm i -g bplt-itest
Usage:
bplt-itest SRC [ -i | --inspect ][ -h | --help ]
Options:
-h, --help help for bplt-itest
-i, --inspect launch dockerized instance but dont remove it
Commands:
Arguments:
SRC directory containing the module to be tested
This command creates a temporary docker container to test your npm modules. You can use it to test your modules on different node versions and to check whether dependencies are fully satisfied.
It performs the following steps:
- Copy a custom Dockerfile into your SRC directory
- Builds an image containing Node.js 10.x
- Copies the SRC directory into
src
and removessrc/node_modules
- Executes
npm install && npm test
- Removes the image
On OSX, remember to run
> $(boot2docker shellinit)
in the same shell where you run the command.
docker run -i -t IMAGE /bin/bash
- Vittorio Zaccaria
Copyright (c) 2015 Vittorio Zaccaria
Released under the BSD License.
This file was generated by verb-cli on April 01, 2015.