0.1.0 • Published 1 year ago

make-mocha v0.1.0

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
1 year ago

make-mocha

Make targets for running tests using Mocha.

Usage

Include this makefile in your Makefile:

include mocha.mk

For convenience when using in JavaScript projects, this makefile is published to npm. It can be installed:

$ npm install make-mocha --save-dev

and then included in your Makefile:

include node_modules/make-mocha/mocha.mk

Define a variable that represents your test suite:

TESTS = test/*.test.js

Invoke the test target:

make test

Variables

Here is a table of some of the more common variables used as names of programs in rules:

  • MOCHA

    Program for running tests; default mocha.

Here is a table of variables whose values are additional arguments for the programs above. The default values for all of these is the empty string, unless otherwise noted.

  • MOCHAFLAGS

    Extra flags to give to the test runner.

Targets

  • test

    Run tests for this package.

Authors

License

The 3-Clause BSD License

Copyright (c) 2016-2023 Jared Hanson

0.1.0

1 year ago