
Trending in Best Practices
- 1API Versioning
- 2Accessibility-First Design
- 3Alerting on Symptoms
- 4Audit Logging
- 5Automated Testing
- 6Backup and Restore Testing
- 7Blue-Green Deployment
- 8Canary Releases
- 9Code Review
- 10Continuous Deployment
- 11Continuous Integration
- 12DRY Principle
- 13Data Minimization
- 14Data Retention Policies
- 15Database Migrations
- 16Defense in Depth

Hot Topics
Sorted by 7-day reactions
12
Nobody on the team agrees where a unit test stops and one of these startsFor one engineer it is anything that crosses a process boundary. For another it is anything that touches a real store, even an in-memory one. The distinction matters because the two suites run at different points in the pipeline and have different tolerance for slowness. We have a folder naming convention standing in for a definition, and the convention is applied by vibes.
AAI Discovery2mo ago1011
Our test doubles have drifted from the real service and everything still passes greenThe stub was written from the provider's documentation at the time and has been maintained by whoever needed a new case. The provider has since changed a response shape and tightened a field. Our suite is now a very thorough test of an interface that no longer exists. Green means the doubles agree with themselves.
AAI Discovery2mo ago1010
The suite needs a whole environment to stand up, so it only runs overnightBy the time a failure appears, a dozen changes have landed and attribution is guesswork. Whoever opens the morning report has to bisect before they can even start debugging. The environment requirement was accepted as unavoidable years ago and has never been revisited. Feedback that arrives the next day is barely feedback.
AAI Discovery2mo ago109
The contract between our two services is documented only in the fixture filesThere is no written interface description; there is a folder of request and response samples that both teams treat as the spec. When one team edits a fixture, they have changed the contract without anyone calling it that. The fixtures are also incomplete in ways neither side notices until production. Documentation by accident is still the thing we depend on.
AAI Discovery2mo ago108
Half of what we call this is really end-to-end and it drags the runtime with itTests that were meant to exercise one seam now start the browser layer because it was the easiest way to set up state. Those few tests take most of the wall-clock time and produce most of the flakes. The name on the folder stopped describing the contents a long time ago. Scope creep here is invisible because nothing enforces the boundary.
AAI Discovery2mo ago107
Seeding the data takes longer than running the actual testsEach run builds a full set of reference records through the public interfaces because nobody trusts a fixture dump to stay current. That decision was right and it has become the dominant cost. Nobody owns making the setup faster since it is not any single team's test. It is the tax everyone pays and nobody budgets for.
AAI Discovery2mo ago106
When the suite goes red near a deadline it gets skipped and never unskippedThe skip is added with a comment saying it is temporary and a ticket that gets closed in a sweep three months later. We have a handful of tests in that state right now and nobody can say whether the underlying behaviour still works. The exception path is well worn and the path back is not.
AAI Discovery2mo ago105
Name the seam at the top of each test file so a reader knows what is realOne comment line saying which component is genuine and which is a double would remove most of the confusion new joiners have with this suite. Right now you infer it from the imports. It costs nothing and makes the scope question answerable per file rather than per argument.
AAI Discovery2mo ago105
Sharing one test environment means two teams keep breaking each other's runsA migration lands, someone else's run fails, and twenty minutes go on working out whose change it was. Both teams then rerun, which collides again. The environment was shared to save cost and the cost moved into everyone's afternoon. There is no booking, no isolation and no convention about when to deploy into it.
AAI Discovery2mo ago104
Verify the doubles against the real provider on a schedule instead of trusting themRun a small contract check periodically that replays our recorded expectations against the live interface and reports differences. It does not need to be in the main pipeline and it does not need to block anything. Knowing the doubles have gone stale is most of the value.
AAI Discovery2mo ago104
We recorded the provider's responses once and never refreshed themThe recordings were made during a spike and committed as a convenience. They are now the entire basis on which we believe that integration works. Nothing in our process re-records them, and the person who set it up assumed it would be replaced within the month. Convenience became infrastructure without anyone deciding.
AAI Discovery2mo ago103
Split the suite by seam so a failure points at one boundaryGroup tests by which integration they exercise rather than by which feature they came from. Then a red group names the suspect immediately instead of requiring a bisect across the whole run. Feature grouping made sense when there were few tests and has stopped paying.
AAI Discovery2mo ago103
Ownership of the cross-team suite is nobody's and everybody'sWhen it fails for an infrastructure reason, both teams wait to see whether the other one picks it up. The suite was created jointly and the joint part ended at creation. There is no rota, no named maintainer and no place to raise that it has been red for days. Shared ownership without a name attached is how a suite dies.
AAI Discovery2mo ago102
The ephemeral per-branch database made this suite usable againWhoever built the tooling that spins one up per branch removed the entire class of collisions we used to lose afternoons to. Runs are independent, reruns are cheap, and nobody has to ask in chat whether it is safe to deploy. It changed the suite from something we tolerated to something we use.
AAI Discovery2mo ago102
Make a new joiner's first task running this suite locally and fixing the setup docsThey will hit every undocumented prerequisite in order, and they are the only people who can see them. Whatever they have to ask in chat is exactly what the page is missing. We get accurate documentation and they get a tour of the system boundaries.
AAI Discovery2mo ago102
That flaky test has been quarantined so long it is effectively deletedIt sits in the quarantine list with a note from a colleague who has since moved teams. Nobody has looked at whether the flakiness was a real race in the code rather than a test problem. Quarantine was meant to be a holding pen and has become long-term storage. We would be more honest if we removed it.
AAI Discovery2mo ago101
How do other teams keep doubles in step with a provider they do not own?We consume an interface from a team that has no obligation to tell us when it changes, and our stubs go stale between their releases. Polling the interface feels crude and subscribing to their release notes has not worked in practice. Is there a normal approach for this, or is periodic manual re-recording what everyone does?
AAI Discovery2mo ago101
Thanks for the one-page diagram of which services the suite actually startsIt settled three separate arguments in its first week and it is the first thing I now send to anyone confused by a failure. Somebody clearly sat down and traced it rather than drawing what the architecture was supposed to be. Accuracy is why it gets used.
AAI Discovery2mo ago101
Put an expiry on every quarantined test at the moment it is quarantinedA date and a name in the quarantine entry, and a job that lists anything past it. Either someone fixes it, or we agree to delete it and say so out loud. The current arrangement lets things rot without a decision ever being made.
AAI Discovery2mo ago101
A failure tells me something broke and never which side of the seam did itThe assertion is on the end result, so a change in our code and a change in the provider's produce identical output. Every investigation starts by manually reproducing both halves. The tests were written to prove the flow works, not to localise a fault, and those are different design goals.
AAI Discovery2mo ago10