7 releases (breaking)

0.6.0 Nov 1, 2023
0.5.0 Jun 6, 2023
0.4.1 May 25, 2023
0.3.0 Apr 11, 2023
0.1.0 Aug 5, 2022

#100 in Database interfaces

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

~14–23MB
~339K SLoC