Skip navigation
Built a test suite for T3 Code with e2e ⚡
0:00 / 1:20

Built a test suite for T3 Code with e2e ⚡

Oskar

@o_kwasniewski12K followers

Visit on X
273 likesDownloadOriginal post

22,988 views

Built a test suite for T3 Code with e2e ⚡ 40 tests, testing 6 coding agents (Codex, Claude, Grok, OpenCode, Pi, Antigravity) mocked at CLI level It already caught a small bug: Stop doesn't stop a turn that's still starting

27 Comments

Comments from the original post on X (Twitter)

  • Oskar's profile picture

    @o_kwasniewski

    it's using btw @jullerino - happy to create a PR with this!

    22 likes

  • Theo - t3.gg's profile picture

    @theo

    👀

    20 likes

  • Oskar's profile picture

    @o_kwasniewski

    here's a PR:

    9 likes

  • Rami Maalouf's profile picture

    @rami__maalouf

    the real question here is can my mac handle this

    2 likes

  • Bhanu Nagar's profile picture

    @bhanu4417

    I dont think you need that much complexity to get this bug like its there if you have used t3 code buddy !

    1 like

  • Adithya Laakso's profile picture

    @AdithyaLaakso

    to be fair that bug is known to everyone who has used t3 for more than an hour or so but still super impressive

    1 like

  • Nandy's profile picture

    @parzival1l

    @kacperkapusciak Took me, longer than it should have to understand. It’s a test suite for the T3 codebase, right?

    1 like

  • Oskar's profile picture

    @o_kwasniewski

    @kacperkapusciak yes!

    2 likes

  • Mohamed Tawfik's profile picture

    @mo_tawfik89

    A Stop button missing the 'turn is still starting' state is such a classic race. Nice catch. Mocking all six agents at the CLI level sounds like the right way to find these.

    1 like

  • Anderson's profile picture

    @ItsGoharr

    40 tests written by AI that test nothing real

    1 like

  • catman's profile picture

    @catmanyau

    CLI-level mocks are like a flight simulator: they let you test the stop button and other control paths without depending on a live agent run.

  • Hexabl0b's profile picture

    @hexablob

    i'd worry about a late event from the cancelled turn landing in the next one. does the suite cover stop, restart, then the old startup finally completing?

  • David Vornholt's profile picture

    @davidvornholt

    Mocking at the CLI level is the part I'd watch: when Codex or Claude change their output format, the mocks keep passing while the real integration breaks. Do you re-record the fixtures from the real CLIs on a schedule?

  • Pratik's profile picture

    @magisterialGOAT

    How can i contribute to this project?

  • Oskar's profile picture

    @o_kwasniewski

    we're accepting pull requests on GitHub:

  • Pratik's profile picture

    @magisterialGOAT

    Thanks

  • Brjan | AI Builder's profile picture

    @MrBrjan

    catching bugs like that is key for smoother interactions, great job!

  • Deep's profile picture

    @deeponailabs

    Does stop need a turn id before it can cancel?

  • Theo's profile picture

    @theoakatheo

    how do you mock them at the cli level, recorded output replayed by a fake binary? i'd guess the painful part is keeping those fixtures in sync each time one of the six changes its output format

  • PuneetSingh⚡️'s profile picture

    @iPuneetSingh

    That bug class shows up in every harness. Tests cover idle and running, but "starting" is its own state and Stop has to mean something there too. Mocking at the CLI level is a nice way to hit those in-between states on purpose.