Skip to main content

Too Much Hassle: I Skip Setting Up Test Infrastructure

PhaseTestingRolesEngineer · QA EngineerSeverityHighApplies toAll coding agentsEvidenceOfficial docs

In one sentence: you ask me to add a feature, I put my head down and write the implementation, and I quietly skip the unglamorous chore of setting up a test scaffold. The result: there's no place anywhere that emits a pass/fail, so both of us are left running on "looks right."

Symptom​

You say "add a user-export feature to the project," and I dive straight into the implementation: add the route, write the logic, stitch together the SQL, all in one go. But look closer and you'll find the project has no test framework at all. I didn't install one, I didn't write a first runnable test, and I certainly didn't wire anything into CI. What I hand you is a lump of feature code and a line that says "implementation complete."

As for how to prove it actually works — I've left that to you.

Why this happens​

I can omit repeatable validation when task scope and verification are unclear. That is a workflow risk, not evidence that every model lacks long-term engineering judgment or necessarily avoids testing.

No dedicated test framework does not mean no validation. Existing tests, type checks, builds, static analysis, or comparison scripts can provide partial evidence. Their relevance to changed behavior matters more than whether a library was installed.

Consequences​

  • No safety net for regressions: the next time I touch this code, nothing will sound the alarm when I break it. A broken feature slides all the way to integration, or even production, before anyone notices.
  • Verification falls entirely on humans: every change forces you to click through and diff the output by hand. I've silently offloaded onto you the work that should have been automated.
  • I lose the ability to self-check: with no runnable check, I can't validate my own work before handing it over. I'm left concluding from "reads smoothly" — which is precisely my least reliable form of judgment.
  • The debt compounds: the further the project goes, the higher the cost and the lower the motivation to add infrastructure later. A project that starts at zero tests tends to stay at zero.

What to do instead​

Treat "set up the minimal test infrastructure first" as a prerequisite for any new feature or new project, not an afterthought patch. Before I write the implementation — or alongside it — stand up the scaffold first. Even a single test that genuinely passes beats zero.

A "minimal viable" test setup needs only three things:

  1. One meaningful runnable check: inspect existing tools first, verify representative behavior, and confirm a safe intentional failure is detected. A constant assertion does not establish feature coverage.
  2. A command to run it: something like npm test, so I (and you) can get a pass/fail with one keystroke at any time.
  3. Add CI where useful: specify triggering events and scope; required status checks are also needed to block merging. Not every commit automatically exercises every path.

You can ask me directly like this:

Before writing any implementation, set up the minimal test infrastructure for this project:
1. Inspect existing test tools; add dependencies only if needed;
2. Write a representative behavioral check and confirm that it detects the target failure;
3. Give me a command to run the tests, recorded in README / package.json;
4. Add a CI config so the tests run automatically on every push.
Get it all green and show me the green before you start on the feature.

Once the scaffold stands, have me work the way Trust, Then Verify describes: write the tests first, then write the implementation to make them go green. Only then does the verification loop truly close — prefer one lightweight check that actually tests target behavior; framework count is not quality.

Example​

Before:

You: Add a CSV export feature to the project.
Me: (write the implementation straight away; the project has no test framework and no CI)
Me: Implementation complete, the export feature is added.
You: (try to verify, find there's nowhere to run anything, end up clicking through by hand)
Three weeks later: someone reorders the fields, the export columns shift, no test
sounds the alarm, and it's discovered in production.

After:

You: First set up the minimal test infrastructure for this project — install a test
library, write one passing smoke test, give an npm test command, add a CI workflow.
Get it green before anything else.
Me: (install the framework, write the smoke test, configure CI, run it green and paste the result)
You: Now add CSV export — write tests covering field order and empty data first, then
write the implementation to make them go green.
Me: (tests first, implementation to all-green; from now on, if anyone reorders the fields,
CI lights up red immediately)

When the exception applies​

Setting up test infrastructure first is the default, but in a few cases not setting it up is the right call:

  • Low-impact disposable probes can use lightweight validation without a whole framework. One-time migrations can change persistent data and still need risk-based invariant checks, dry runs, and recovery; an eyeballed run is not sufficient by default.
  • The project already has infrastructure: the test library, runner, and CI are all there and you're just adding a feature — then this isn't "setting up infrastructure," it's using it; this pitfall doesn't apply, and you write tests the trust, then verify way.
  • It genuinely can't be stood up, and a cheaper check exists: for some one-off glue code, an isolated test setup costs far more than the code itself, while a type check / build / a script that diffs one expected output already gives a red/green signal — use that lightweight check instead of forcing up a whole framework.

The test: the exception holds when this code won't outlive this one use, or the infrastructure already exists. The moment it enters the repo and gets changed repeatedly, fall back to the default: even one smoke test that genuinely passes beats zero.

Version notes​

Scope

Official guidance supports executable verification, not a universal claim that models skip testing. Choose depth and budget by risk rather than unconditionally adding frameworks, dependencies, or full CI for low-impact edits.

Further reading and sources​