Note: This repository has (finally) been superseded by TestStand. If this functionality is still of use to you, please take a look at that crate for support in Rocket (and perhaps other frameworks, too).
This crate makes it easy for database providers and web framework providers to create databases for testing and tear them down at the end of the test.
This provides the facility to offer "transactional" integration tests, at least in the frame of keeping data hygienic.
- support creating Postgres databases
- integrate with Rocket
- support multiple database creations and teardowns
- support creating Diesel MySQL databases
- support creating Diesel SQLite databases
- Not sure on this one. It might be solvable by just injecting
:memory:
as the database type for SQLite.
- Not sure on this one. It might be solvable by just injecting
- TODO: Add a list of databases to target