Skip to content

How does Cockroach test for Postgres compatibility? #77991

Answered by jordanlewis
anyweez asked this question in Q&A
Discussion options

You must be logged in to vote

CockroachDB has a lot of such test suites. Here are some:

Logic Tests are probably the largest and most actively developed SQL test suite in CockroachDB. The Logic Test framework is a datadriven (plain text file based) expectation testing system. The test files live here:(https://github.com/cockroachdb/cockroach/tree/master/pkg/sql/logictest/testdata/logic_test
The logic test framework was adapted from SQLite’s logic test framework which is covered below.

Logic tests support “configurations”, which are keywords that instruct the test framework to behave differently. By default, each logic test file is run under a large set of configurations, which test different modes of operation in the …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@anyweez
Comment options

Answer selected by anyweez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants