You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem or unsupported use case? Please describe.
Currently we have many self.assertNumQueries in our tests, but as we are working, we frenquently need to update the expected values.
Also, when a number of queries changes, we don't know which queries have been added or removed.
Describe the solution you'd like
We should try https://github.com/adamchainz/django-perf-rec which stores all queries performed in a file, and compares them with the actual ones.
This would avoid the need to update each values, and would give us a clear view on added or removed queries.
Discovery, Documentation, Adoption, Migration Strategy
As we often use random values in our factories, we may write more deterministic tests when we are using this library.
Do you want to work on it through a Pull Request?
👍
The text was updated successfully, but these errors were encountered:
Feature Request
Is your feature request related to a problem or unsupported use case? Please describe.
Currently we have many self.assertNumQueries in our tests, but as we are working, we frenquently need to update the expected values.
Also, when a number of queries changes, we don't know which queries have been added or removed.
Describe the solution you'd like
We should try https://github.com/adamchainz/django-perf-rec which stores all queries performed in a file, and compares them with the actual ones.
This would avoid the need to update each values, and would give us a clear view on added or removed queries.
Discovery, Documentation, Adoption, Migration Strategy
As we often use random values in our factories, we may write more deterministic tests when we are using this library.
Do you want to work on it through a Pull Request?
👍
The text was updated successfully, but these errors were encountered: