nestest

v0.0.4
Test nested node packages with `npm test`
nest nested test npm test node package

nestest

Test nested node packages with npm test

Use

If you write nested npm packages, it becomes a pain to test pushd into subpackages just to run npm test. Instead, include nestest in the top packages nesting script, and npm test will be called on all nested subpackages!

  "scripts": {
    "test": "mocha test/test.js && nestest"
  },

API

If you want to run other commands recursively on nested subpackages, take a look at echo-name or install. You can change both the command and the argument:

var nestest = require('./index.js')

nestest.command = '/path/to/new/shell/command/to/execute/recursively'
nestest.args = ['-f'] // must be an array

// Simply call bootstrap when you're ready to roll!
nestest.bootstrap()

Contributing

Be sure your tests pass by using npm test. Pull requests will be checked using CircleCI.

TODO

  • Allow capture of stdout/stderr for programmatic use.
npm i nestest

Metadata

  • MIT
  • Whatever
  • Zach Pomerantz
  • released 12/30/2014

Downloads

Maintainers