v0.3.0 shrinks failures and runs them as tests, open source under Apache 2.0

Keep a run of any program as a file, replay it, compare it

Your code is versioned and kept. Its runs are thrown away. CodeInstances records a run with every HTTP and HTTPS exchange it makes, then replays it offline and tells you whether it came out the same, or puts two runs side by side to show where a failing one went wrong.

10 of 10

Offline replays that matched the recording, with the live servers stopped

23 calls

HTTPS and HTTP exchanges recorded in 58 ms and kept in one 20,617-byte file

35 to 47 ms

Time for each of the 10 replays, never opening a connection

77 tests

Go tests passing, with the race detector finding nothing

From the self-checking demo and test suite of v0.3.0, recorded on a Linux machine with an Intel Xeon at 2.10GHz and 2 CPUs. The result files are in the code repository under test/results.

Articles

All posts →

Record your first run

Download the binary, put codeinstances record in front of a command and replay it with the network off. Questions and bug reports are welcome.

Start here