Skip to content

Commit

Permalink
Add viztracer command for testing targets
Browse files Browse the repository at this point in the history
When it comes to testing targets it took me a long while to work out I could use the `--input` switch to pass a file of records to the target rather than trying to work out how to run `viztracer` on a command containing a pipe 🤯. If the added line can be proven to work by a reviewer and it's OK to be added to the documentation then it would have saved me heaps of time yesterday 😄
  • Loading branch information
mjsqu authored Aug 23, 2023
1 parent 910163a commit a3ae7ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/dev_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ Then simply run your package's CLI as normal, preceded by the `viztracer` comman

```console
$ poetry run viztracer my-tap
$ poetry run viztracer -- my-target --config=config.json --input=messages.json
```

That command will produce a `result.json` file which you can explore with the `vizviewer` tool.
Expand Down

0 comments on commit a3ae7ab

Please sign in to comment.