Test Foundry

Software testing / Development

Ship code you can trust.

Practical notes for developers and software testers: design useful regression tests, report bugs others can reproduce, and check JSON fixtures before they reach your test suite.

Read the field notes

01 / Field notes

Two habits that catch regressions

Test design

Test the boundary that broke

A smoke test asks whether a core workflow works at all. A regression test checks that behavior that worked before still works, often by preserving the exact case that exposed a bug.

If an API accepts a page size of 1–100, a smoke test might request 20 and verify the response. Test the boundaries with 0, 1, 100, and 101. Check that 1 and 100 succeed and that 0 and 101 return the documented validation error. If a bug accepted 101, keep that case in continuous integration (CI).

Debugging

Write a bug report someone can run

Record the build, environment, input, exact steps, and expected versus actual behavior. Use a small synthetic fixture instead of live customer data or credentials.

Input
{"pageSize": 101}
Expected
HTTP 400 with a validation error
Actual
HTTP 200 with 101 results

Once the fix lands, verify the same input against the new build.

02 / Browser tool

JSON fixture lab

Check JSON syntax before you use a fixture in a unit test or API integration test. This tool does not check an API schema, detect duplicate keys, or verify business rules.

It runs in your browser without uploading data. Use synthetic fixtures, not secrets or customer records.

Use double quotes around keys and strings. Trailing commas aren’t valid JSON.