15 releases (breaking)

0.11.0 Oct 3, 2024
0.10.1 Jul 31, 2024
0.9.0 Jul 23, 2024
0.7.1 Mar 16, 2024
0.1.0 Aug 5, 2022

#949 in Database interfaces

Apache-2.0

1MB
24K 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

~21–31MB
~466K SLoC