Your tests pass. Do they check anything?
RedMachine breaks each line you changed, one at a time, and runs your tests. If no test fails, no test was checking that line.
Why
An AI assistant can write code, write the tests, run them and report that everything passes. A test can run your code and still pass when the code is wrong. A test that never fails proves nothing.
RedMachine finds the changed lines that no test would catch if they were wrong, and gives a plain PASS or FAIL.
Why can't my existing agent just do this for me?
What a run looks like
KILLED cart/pricing.py:4 [+ to -]
KILLED cart/pricing.py:5 [> to <]
SURVIVED cart/pricing.py:6 [+ to -] every test passed with this line broken
broken as: cost = cost - 15
counted 8: killed 6, survived 2, unviable 0, not tried 0
RESULT: FAIL. 2 changed lines are not proven by any test.
KILLED means a test failed when the line was broken, so a test checks it. SURVIVED means every test still passed. Hand the list to your assistant, have it write the missing tests, and run it again until the result is PASS.
Checking it does what you asked
- Tell your agent what you want.
- Your agent writes the code and a test named for each thing you asked for.
- RedMachine breaks the code and proves each of those tests can fail.
- The receipt lists the tests by name. Anything you asked for that is not on the list was not checked.
Hand the receipt to a second agent, or read it yourself. How this works.
What you get
- One program file for macOS (Apple silicon and Intel) and Linux (x86_64 and arm64). Nothing else to install.
- Rust, Python, JavaScript and TypeScript, and Go built in. Swift and Xcode projects in preview. Other languages with your own commands.
- No AI inside and no randomness: the same change gives the same result.
- A receipt of every run that names the tests that ran and the tests that caught each broken line.
- An instruction to paste into your assistant so it does the work.
What it is not
- It does not write tests and it does not find bugs by itself. It shows which changed lines your tests do not check.
- It is not fast. Each changed line costs at least a second plus one run of your tests.
- It is mutation testing, narrowed to the lines of one change. The idea is not new.
- It runs your tests against code it has broken on purpose. If your code deletes files or sends anything, run it in CI or a container.
- It does not run on Windows.
Price
$79 while Swift and Xcode support is in preview. $99 when it leaves preview. One payment, no subscription. Each purchase works on two machines.