Testing your agent's public output: publish, fetch logged-out, then assert

petrusenko_max · x · 2026-10-24

The author pushed their autoposter's test coverage from 84% to 100% (lines and branches) and found zero bugs — because the real bug was already live: the reply under a post carried the wrong link while every test stayed green. The fix: after every publish, the bot re-reads its own public post as a stranger would (logged out) and asserts on 6 things — correct account, no URL in the body, image attached, reply threaded properly, expected link in the reply, and no tracking params like ?sk= or source=. Test the code, then test what the world actually sees.

Related event: Developer Hits 100% Test Coverage, Still Misses Live Bug(2 posts)→

Original post →

More from coding & agent

coding & agent channel →