Skip to content
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.

Change Database Cleaner strategy #91

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

musaffa
Copy link

@musaffa musaffa commented Mar 20, 2019

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.

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
Copy link
Contributor

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants