Skip to content

Commit

Permalink
add readme for test helper cli wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
ashutoshvarma committed Mar 18, 2021
1 parent d19f81b commit f0b212c
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions utils/testsuite_helper/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# testsuite_helper

This module is primarily used to expose `JSON.parse` through a CLI environment for testing purpose.

### Return codes :-
- 0 - If successfully parsed the input
- 2 - Can't read the file properly

(It needs `wasmtime` to execute)

## Build
```
yarn
yarn build
```

## Run
```
yarn start --dir FOLDER JSON_FILE_NAME
```
or
```
wasmtime build/index.wasm --dir FOLDER JSON_FILE_NAME
```

0 comments on commit f0b212c

Please sign in to comment.