From fb65863e4997837080bcc69e118d89d198783bfb Mon Sep 17 00:00:00 2001 From: Deepak Rajamohan Date: Fri, 15 Oct 2021 15:24:25 -0700 Subject: [PATCH] unit tests --- unit-test/README.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/unit-test/README.md b/unit-test/README.md index 30066f9e0..c059b5ddf 100644 --- a/unit-test/README.md +++ b/unit-test/README.md @@ -3,8 +3,7 @@ ### Example: - - compile ad run only tests on objectwrap.cc and objectwrap.js - + - compile ad run only tests on objectwrap.cc and objectwrap.js ``` npm run unit --filter=objectwrap ``` @@ -14,12 +13,16 @@ ### Example: + - compile and run all tests files ending with reference -> function_reference.cc object_reference.cc reference.cc +``` npm run unit --filter=*reference -will compile and run all tests files ending with reference -> function_reference.cc object_reference.cc reference.cc +``` # Multiple filter conditions are also allowed -# Example: +### Example: + - compile and run all tests under folders threadsafe_function and typed_threadsafe_function and also the objectwrap.cc file +``` npm run unit --filter='*function objectwrap' -will compile and run all tests under folders threadsafe_function and typed_threadsafe_function and also the objectwrap.cc file +```