Path: redb/redb.Tests.Integration/README.md Snapshot: redb, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages. License: Apache-2.0. Repository: https://github.com/redbase-app/redb Page: https://redbase.app/src/dev-2026-12-06/redb/redb.Tests.Integration/README.md ---- # redb.Tests.Integration Integration and unit tests of the redb packages, by provider folder (`Tests/Postgres`, `Tests/PostgresPro`, `Tests/MsSql`, `Tests/MsSqlPro`, `Tests/Sqlite`, `Tests/SqlitePro`, `Tests/Unit`, ...). The Pro folders run in both planner modes (`REDB_PVT_PREFILTER=0` and `=1`). ## Pins a schema change must satisfy Three groups of tests fail on purpose when the schema or the start-up path changes, until the change carries what goes with it: - **Index tables** (`IndexCatalogTests` per provider, and the Pro ones): the expected indexes of each provider are a generated table (`*IndexCatalog.g.cs`), compared both ways with a fresh database. Add, drop or redefine an index and regenerate the table: run the test with `REDB_WRITE_INDEX_CATALOG=1`, or, on a test host that cannot write the source tree, take the file from the failure message (between `===BEGIN` and `===END`). Review the diff. - **Streams index files** (`StreamsIndexesFilePinTests`): `pvt_streams_indexes.sql` of PostgreSQL Pro and SQL Server Pro is built once, at the module step that brings it. A change of a file goes with a new module version and `StreamsIndexes.Since` set to it, then the pinned hash. - **SQLite start-up** (`SqlitePlannerStatisticsTests`): every SQLite start may analyze the file (no statistics and at least 10 000 value rows) or run `PRAGMA optimize`. A test that counts statements or reads `sqlite_stat1` at start-up sees that step. ## Databases the tests leave None, except the shared ones the fixtures reuse on purpose (`redb`, and `redb_collation_c` on PostgreSQL, whose non-default locale is slow to create). A class that creates a database, role or login of its own drops it by exact name when it is done, also when its tests failed.