Have we considered not writing tests that assert every query ever made to the database, whether that query hit the cache, and what order they were executed in? Your test doesn't need to care about SELECT statements being run.
-
Show this thread
-
Replying to @sgrif
Do you mean people writing assertions specifically looking for a query to be run? Or tests that have lots of queries as byproduct/side effect?
1 reply 0 retweets 0 likes -
Replying to @nateberkopec
Any test that is writing things like "assert N queries are made" or "assert this SELECT statement was made"
1 reply 0 retweets 0 likes -
Replying to @nateberkopec
It really doesn't. It's just an insidiously disguised version of the latter. You're coupling yourself to details you don't want to be.
9:11 AM - 7 Sep 2018
from Albuquerque, NM
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.