dry-rb / dry-web-roda

Roda integration for dry-web apps
MIT License
119 stars 22 forks source link

Change Database Cleaner strategy #91

Open musaffa opened 5 years ago

musaffa commented 5 years ago

I've an API project with 1700+ tests and it's growing. It used to take 15 to 20 minutes to run the complete suite. So I wanted to avoid running the suite at all cost. After a single change as suggested in this PR, the time dropped to 40 seconds. There's still a truncation strategy in the before suite hook. But when the tests start to run, transaction strategy is good enough.

v-kolesnikov commented 5 years ago

Related discussion: https://gitter.im/rom-rb/chat?at=5c90f98a8126720abc0b0e91