raw
current commit
260513.1 · doc: clarify filtered test behavior (#1725)

Enable running tests with specific filter conditions:

The --filter option limits which test modules are executed by node test. The default pretest step is still node-gyp rebuild -C test, so npm test --filter=... still performs a full rebuild of the test addon targets before the filtered tests run.

Example:

    npm test --filter=objectwrap

Wildcards are also possible:

Example:

    npm test --filter=*reference

Multiple filter conditions are also allowed

Example:

    npm test --filter='*function objectwrap'