Product · Tests
Cortex writes the tests. Open a PR and Cortex generates the unit and integration tests that should ship with it — matching your framework, your patterns, and your coverage goals. Backfill old code on demand.
feat: refund partial orders
happy path · edges · auth · error states
refunds.ts now at 92% lines
How it works
Cortex slots into your existing test framework — Vitest, Jest, Pytest, Go test, RSpec — and authors the cases your team would write if there were time.
Pick a function, a module, or an open pull request. Cortex reads the surrounding code and conventions.
Happy paths, edge cases, error states, and auth boundaries — written in your framework's style.
See every case before any code is written. Reject ones you don't want, refine the rest in plain English.
A draft PR adds the new tests to your repo. Your CI runs them. You review and merge.
Features
Vitest, Jest, Pytest, Go test, RSpec, and more — Cortex writes in the style your repo already uses.
Existing helpers, fixtures, and mocks get reused. New tests look like neighbours, not strangers.
Open a PR and Cortex covers exactly what changed — the new function, the new branch, the new edge case.
Point Cortex at an untested module and it'll author a full test plan, then ship the cases as a PR.
Every test run starts with a reviewable plan. You approve which cases get written before any code lands.
Your code, embeddings, and tokens stay scoped to your organization with row-level security.