main/b74c10/test-writer
b74c10feat: tests that write themselves main

The tests your PR is missing, drafted for you.

Test Writer finds the functions a pull request changed that no test covers, then drafts unit and integration tests in your framework and style. Developers review, edit and commit them like any other code.

tests/applyCoupon.test.tsAI-written
1+// AI-written by Test Writer. Review before commit.
2+import { applyCoupon } from '../checkout/discount'
3+
4+describe('applyCoupon', () => {
5+ const coupon = { active: true, amount: 20, expiresAt: Date.now() + 60000 }
6+
7+ it('subtracts coupon amount from price', () => {
8+ expect(applyCoupon(100, coupon)).toBe(80)
9+ })
10+
11+ it('never returns a negative total', () => {
12+ expect(applyCoupon(10, coupon)).toBe(0)
13+ })
14+
15+ it('ignores expired coupons', () => {
16+ expect(applyCoupon(100, { ...coupon, expiresAt: 0 })).toBe(100)
17+ })
18+})
5 drafted, 5 passing2 edge casesapplyCoupon coverage 0% to 92%
CHANGELOG Test Writer

How tests get drafted

Test Writer works from the diff and your existing test suite, so new tests look like the ones your team already writes.

Finds the coverage gapMaps changed functions to existing tests and flags the ones nothing exercises.
Learns your conventionsReuses your fixtures, factories, mocks and naming patterns instead of inventing new ones.
Covers the edgesBoundaries, empty and null inputs, error paths and the exact bug the reviewer flagged.
Runs before it suggestsDrafted tests are executed in CI. Only passing, meaningful tests are offered.
Labels everythingEvery generated file and test is marked AI-written so reviewers know what they are reading.

Major frameworks

Jest, Vitest, PyTest, JUnit 5, Go test, RSpec, xUnit and NUnit, detected from your repo.

Changed code first

Effort goes where risk just went up, not into generating tests for stable code nobody touched.

Unit and integration

Pure function tests where possible, integration tests with your test database or HTTP client where needed.

Readable test names

Each test says what behavior it proves, so a failing test explains itself.

Works with your CI

Drafted tests run in GitHub Actions, GitLab CI, Jenkins or CircleCI before they are offered.

No flaky padding

Tests that depend on time, randomness or network without control are discarded, not suggested.

AI-written tests are always reviewedGenerated tests are marked as AI-written and stay suggestions until a developer reviews and commits them.
git log --questions test-writer

Common questions

No. It only drafts tests for changed code without coverage, and only offers tests that pass and assert something meaningful. You choose which ones to commit.

Yes. Test Writer detects the framework and conventions per package, so a Python service and a TypeScript app in the same repo each get tests in their own style.

Test Writer is part of the Team and Enterprise plans.

git merge feat/first-review into main

Review your
first repo free.

One repository, AI review on every pull request, no time limit. Connect it in about five minutes and the next PR gets a first pass in under a minute.

Review 1 repo free