TestDrag itBlock 7 of 44

Run the tests and fix what fails

/test runs your test command and keeps fixing the code until it passes. Drag the divider to compare the failing run with the passing one.

Before and after /test

Drag the block above. /test runs your tests and fixes failures until they pass; /undo puts it all back.

How it works in Omi CLI

  1. 01

    /test finds your test command itself, such as npm test, pytest, cargo test or go test.

  2. 02

    You can also give it the command: /test npm run test:unit.

  3. 03

    It edits the code, runs the tests again and repeats until they pass.

  4. 04

    /undo puts back every file the last task changed if you want it gone.

Try it in your terminal

  • /test

    Finds and runs your tests, then fixes failures.

  • /test pytest -q

    Uses the command you give.

  • /undo

    Puts the files back.

Try it on your own code.

Free to start, no card. One install, then omi login.

Slide to start free
Slide to start free
install
$ npm install -g @builditomi/cli

Goes well with