Skip to content

Commit

Permalink
docs: --filter
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode committed Sep 16, 2024
1 parent f6a334f commit 43d5177
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/pretty-eyes-hope.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@zazuko/shacl-test": patch
---

Added an option `--command` to use an alternative to `barnard59 shacl`
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ npx shacl-test \
--shapes=${SHAPES} \
--valid-cases="${VALID_CASES_GLOB}" \
--invalid-cases="${INVALID_CASES_GLOB}" \
--filter="${FILTER}" \
--approve \
--debug \
--prefixes=${PREFIXES} \
Expand All @@ -29,6 +30,8 @@ Only the `--shapes` option is required. The rest are optional.
`--valid-cases` and `--invalid-cases` are globs that match the test cases.
Make sure to put them in quotes to avoid shell expansion.

`--filter` is a regular expression to filter the test cases.

`--approve` will approve the validation reports for the negative test cases instead of failing.

`--debug` will print the validation report for each test case.
Expand Down

0 comments on commit 43d5177

Please sign in to comment.