bplt-itest
v0.0.3
Published
Test your npm module into a docker container
Downloads
3
Readme
bplt-itest
Install globally with npm:
npm i -g bplt-itest
Usage
Usage:
bplt-itest SRC [ -h | --help ]
Options:
-h, --help help for bplt-itest
Commands:
Arguments:
SRC directory containing the module to be tested
What is it
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
Prerequisites
On OSX, remember to run
> $(boot2docker shellinit)
in the same shell where you run the command.
Author
- Vittorio Zaccaria
License
Copyright (c) 2015 Vittorio Zaccaria
Released under the BSD License.
This file was generated by verb-cli on March 23, 2015.