Running existing tests
check is the default command.
suitener check ./path/to/backendFlow:
- Introspects the target project.
- Detects test files and a runnable test command.
- Runs the existing tests if both tests and a command exist.
- Generates stubs if tests or a command are missing.
- Writes results to
suitener-results/. - 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 markedpass. - If the command exits non-zero, every detected test file is marked
fail. - The first error comes from
stderr, orstdoutifstderris empty, capped to the first 8 lines.
This avoids parsing every framework’s custom reporter format.
Example
Section titled “Example”suitener check ./backendpassed 2 tests / 2 pass / 0 fail
summary project backend suite existing time 155ms report suitener-results/latest.json