10 releases (6 breaking)

new 0.7.2 Apr 12, 2024
0.7.1 Mar 16, 2024
0.6.0 Nov 1, 2023
0.5.0 Jun 6, 2023
0.1.0 Aug 5, 2022

#333 in Database interfaces

Download history 69/week @ 2024-02-18 25/week @ 2024-02-25 3/week @ 2024-03-03 262/week @ 2024-03-10 46/week @ 2024-03-17 1/week @ 2024-03-24 17/week @ 2024-03-31

327 downloads per month

Apache-2.0

1MB
21K SLoC

Running the Tests

Running cargo test from the partiql-lang-rust root will not run the conformance tests by default.

To run all the tests (including conformance tests), you will need to run cargo test with the "conformance_test" --features flag:

cargo test --features "conformance_test"

Or to run just the conformance tests:

cargo test --package partiql-conformance-tests --features "conformance_test"

Conformance tests are generated from the PartiQL Test Data.

Default Tests

The default tests can be run with:

cargo test --package partiql-conformance-tests --features "conformance_test" 

Which is equivalent to

cargo test --package partiql-conformance-tests --no-default-features --features "base,conformance_test" 

Test Categories

It is also possible to run subsets of the tests. See the set of test categories in Cargo.toml

To run only semantic analysis tests:

cargo test --package partiql-conformance-tests --no-default-features --features "semantic,conformance_test" 

To run only strict tests:

cargo test --package partiql-conformance-tests --no-default-features --features "strict,conformance_test" 

To run experimental tests in addition to all default tests:

cargo test --package partiql-conformance-tests --features "experimental, conformance_test" 

Individual Tests

Running an individual test (or subset of tests) can vary by the IDE being used. Using CLion, you may need to first edit the test run configuration and enable the "Use all features in test" checkbox or explicitly add the --features "conformance_test" test option.

Using the command line, you can run an individual test with the following:

cargo test --package partiql-conformance-tests --test <test name or full mod path> --features "conformance_test" -- --exact

Dependencies

~16–27MB
~368K SLoC