Unit and feature
buddy test splits them, or runs both. Feature tests boot the app and go through the router the way a request does.
Bun runs the suite, so it is fast enough that feature tests hitting a real database stay in the loop you actually run. Factories come from the model you already wrote, which means test data cannot drift from the schema.
All of it in the same install, with nothing to wire together first.
buddy test splits them, or runs both. Feature tests boot the app and go through the router the way a request does.
Call a route, assert on status, headers, and the decoded JSON body without standing up a server yourself.
Per-test migration and truncation, so a test that writes rows does not decide what the next test sees.
The factory functions on each model attribute generate valid rows, so a schema change breaks the seed rather than the assertion.
Drive the rendered page for the flows that only exist once STX has hydrated.
buddy typecheck runs the native Go compiler over app, config, resources, and routes in a couple of seconds.
Buddy scaffolds, runs, and ships this the same way it does the rest of the app.
These share the same models, config, and types, so using them together costs nothing extra.