Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide database integration tests best practices #594

Open
0xTim opened this issue Mar 18, 2021 · 0 comments
Open

Provide database integration tests best practices #594

0xTim opened this issue Mar 18, 2021 · 0 comments

Comments

@0xTim
Copy link
Member

0xTim commented Mar 18, 2021

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant