Codity CLI

Test generation

Tests written for the change you just made, run, and repaired when they fail — pointed at any diff you can name.

  • Codity generates tests for the code you just wrote, writes them to disk when you are ready, and can run them locally with an autofix loop until they pass or hit your attempt limit.

  • Target staged changes, all uncommitted work, a commit, or a branch diff. Override the test command when your monorepo needs something custom.

codity/cli⌘K
codityrepo: payments-apimode: TEST
$ codity test-gen --fix --stagedWrote checkout.test.tsAttempt 1 fail · autofixing…✓ 12 passed

More of the CLI