Robert Pankowecki wrote:
On Oct 10, 7:29ï¿½am, Marnen Laibow-Koser [email protected] wrote:
No. ï¿½Even dictionaries should not be seeded in test. ï¿½Just use factories
to create only the actual records needed for each individual test.
I can’t agree. Try to convince me. Having all the dictionaries seeded
once at the start makes my tests shorter and faster.
It does not make them faster, because you’re loading lots of unnecessary
Anyway, who cares who fast your tests are if they’re wrong? You can’t
know that you’re actually testing what you think you are, unless you
start each test from a blank slate and create only a restricted set of
records (generally no more than 10 if your tests are of the proper
granularity). Preloading the DB is cheating at solitaire.
Sent from my iPhone