11 releases

0.0.14 Jul 3, 2024
0.0.13 Jun 22, 2024
0.0.10 Jan 29, 2024
0.0.6 Dec 30, 2023
0.0.2 Oct 13, 2023

#1431 in Database interfaces

Download history 3/week @ 2024-03-29 154/week @ 2024-06-07 131/week @ 2024-06-14 183/week @ 2024-06-21 114/week @ 2024-06-28 18/week @ 2024-07-05

322 downloads per month

MIT/Apache

1.5MB
20K SLoC

ShEx testsuite

This module contains the code that runs the ShEx testsuite for the ShEx implementation written in Rust.

It has a command line interface that can be used to run some specific tests.

Usage

Usage: shex_testsuite [OPTIONS]

Options:
  -m, --manifest <Manifest FILE (.jsonld)>
          Name of Manifest file [default: shex_testsuite/shexTest/validation/manifest.jsonld]
  -c, --config <Config file>
          [default: shex_testsuite/config.yml]
  -x, --run_mode <MANIFEST_RUN_MODE>
          [default: collect-errors] [possible values: collect-errors, fail-first-error]
  -f, --manifest_mode <MANIFEST_MODE>
          [possible values: schemas, validation, negative-syntax, negative-structure]
  -p, --print_result_mode <PRINT_RESULT_MODE>
          [default: basic] [possible values: basic, failed, passed, not-implemented, all]
  -e, --entry <Entry names>
          
  -t, --trait <Trait names>
          
  -h, --help
          Print help
  -V, --version
          Print version

Examples

By default it runs the validation tests and shows some statistics

cargo run -p shex_testsuite
Passed: 244, Failed: 340, Skipped: 24, Not implemented: 558

Run testsuite to check that the well-formed schemas are read

cargo run -p shex_testsuite -- -p failed -m shex_testsuite/shexTest/schemas/manifest.jsonld -f schemas

Dependencies

~16–33MB
~478K SLoC