docs icon indicating copy to clipboard operation
docs copied to clipboard

Provide database integration tests best practices

Open 0xTim opened this issue 4 years ago • 0 comments

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

0xTim avatar Mar 18 '21 10:03 0xTim