Skip to content

Commit

Permalink
unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Deepak Rajamohan committed Oct 15, 2021
1 parent df1e7f7 commit fb65863
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions unit-test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand All @@ -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
```

0 comments on commit fb65863

Please sign in to comment.