run-tests-py
is the test runner used by the Mercurial project, extracted as an NPM module.
The test runner is designed to easily test CLI tools. See https://www.mercurial-scm.org/wiki/WritingTests.
See https://www.mercurial-scm.org/wiki/WritingTests for details on how to write tests. To install this package, and use it for your own tests, do:
$ npm install -D run-tests-py
$ python ./node_modules/.bin/run-tests.py
To avoid building hg
, use:
$ python ./node_modules/.bin/run-tests.py --with-hg=/usr/bin/true
run-tests.py
and killdaemons.py
are from the Mercurial project. Their license in included in THIRD-PARTY-NOTICES.