Skip to content

Running existing tests

check is the default command.

Terminal window
suitener check ./path/to/backend

Flow:

  1. Introspects the target project.
  2. Detects test files and a runnable test command.
  3. Runs the existing tests if both tests and a command exist.
  4. Generates stubs if tests or a command are missing.
  5. Writes results to suitener-results/.
  6. Prints decorated terminal output or raw JSON.

Suitener shells out with Bun.spawn. The command runs from the target project directory. stdout and stderr are captured in raw_output.

Current normalization is file-level:

  • If the test command exits 0, every detected test file is marked pass.
  • If the command exits non-zero, every detected test file is marked fail.
  • The first error comes from stderr, or stdout if stderr is empty, capped to the first 8 lines.

This avoids parsing every framework’s custom reporter format.

Terminal window
suitener check ./backend
passed 2 tests / 2 pass / 0 fail
summary
project backend
suite existing
time 155ms
report suitener-results/latest.json