tree: 911b69364517c4d376a8d472cf5ef0b2062818a0 [path history] [tgz]
  1. .gitignore
  2. binding-file-template.js
  3. binding.gyp
  4. exceptions.js
  5. generate-binding-cc.js
  6. injectTestParams.js
  7. listOfTestModules.js
  8. matchModules.js
  9. README.md
  10. setup.js
  11. spawnTask.js
  12. test.js
unit-test/README.md

Enable running tests with specific filter conditions:

Example:

  • compile and run only tests on objectwrap.cc and objectwrap.js
    npm run test --filter=objectwrap

Wildcards are also possible:

Example:

  • compile and run all tests files ending with reference -> function_reference.cc object_reference.cc reference.cc
    npm run test --filter=*reference

Multiple filter conditions are also allowed

Example:

  • compile and run all tests under folders threadsafe_function and typed_threadsafe_function and also the objectwrap.cc file
    npm run test --filter='*function objectwrap'