From 43d51777c95e96e189b5175d2a2d6f31bc8f7ddc Mon Sep 17 00:00:00 2001 From: Tomasz Pluskiewicz Date: Mon, 16 Sep 2024 12:46:46 +0200 Subject: [PATCH] docs: --filter --- .changeset/pretty-eyes-hope.md | 5 +++++ README.md | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 .changeset/pretty-eyes-hope.md diff --git a/.changeset/pretty-eyes-hope.md b/.changeset/pretty-eyes-hope.md new file mode 100644 index 0000000..b08b974 --- /dev/null +++ b/.changeset/pretty-eyes-hope.md @@ -0,0 +1,5 @@ +--- +"@zazuko/shacl-test": patch +--- + +Added an option `--command` to use an alternative to `barnard59 shacl` diff --git a/README.md b/README.md index f4f5c0c..362a234 100644 --- a/README.md +++ b/README.md @@ -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} \ @@ -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.