An open API service indexing awesome lists of open source software.

https://github.com/cljoly/rusqlite-snapshot-testing

Snapshot testing tool for rusqlite
https://github.com/cljoly/rusqlite-snapshot-testing

rusqlite rust sqlite wip

Last synced: 6 months ago
JSON representation

Snapshot testing tool for rusqlite

Awesome Lists containing this project

README

          

# Rusqlite Snapshot Testing

[![docs.rs](https://img.shields.io/docsrs/rusqlite-snapshot-testing)][docs]
[![Crates.io](https://img.shields.io/crates/v/rusqlite-snapshot-testing)][cio]

Tool to perform snapshot testing on an SQLite database, using [rusqlite][].

The goal is to expose both data and the schema in the snapshots. It is also compatible with [Insta Snapshots][insta]

**This is experimental software, expect breaking changes between 0.x versions, consistent with the semver rules for Rust.**

## Background reading on snapshot testing.

- https://ianthehenry.com/posts/my-kind-of-repl/
- https://tigerbeetle.com/blog/2024-05-14-snapshot-testing-for-the-masses/
- https://blog.janestreet.com/the-joy-of-expect-tests/

[cio]: https://crates.io/crates/rusqlite-snapshot-testing
[docs]: https://docs.rs/rusqlite-snapshot-testing
[insta]: https://insta.rs
[rusqlite]: https://crates.io/crates/rusqlite