docs
docs copied to clipboard
Provide database integration tests best practices
We should add a section in the docs for best practices and options when running integration tests with a real database.
Points to touch on should include:
- setting up the database configuration for testing (you don't want to use the live DB!)
- using
autoRevert()/autoMigrate()in tests - using a transaction in tests to speed them up