Skip to content

README

Loading...

Live system. This version passed every check before it shipped.

Blog

Steven StoutBlogNov 11, 2026 · 6 min read

Quality on both ends: what my tests and CodeRabbit taught me

My tests grew 3.5 times since September and still finish in about seven minutes. Five lessons from two weeks of a test gate on one end and CodeRabbit on the other.

Title slide: Quality on both ends. TheYard, my .NET and Azure platform built with Claude, checked by an automated test gate and by CodeRabbit. 1,487 tests in 7.0 minutes on September 21, 5,154 tests in 6.9 minutes at the median on November 11.

01The full post

Steven Stout

Staff .NET Engineer | AI-Assisted Development with Quality Gates | 12 Years Full Stack .NET, 7 Fully Remote

· first posted on LinkedIn · 6 min read

My site runs 3.5 times as many automated tests as it did in September, and they still finish in about seven minutes.

The site is TheYard, a working .NET and Azure platform I build as my portfolio. Claude writes most of the code, and I decide what is allowed to go live. Every change passes two checks before it reaches the live site:

  • An automated test gate. It runs all 5,154 tests and blocks any change where a single test fails.
  • An AI code reviewer. CodeRabbit reads each change the way a teammate reviews a pull request and reports anything that breaks my coding standards.

Two weeks of running both taught me five things. The live numbers behind each one are on the site's Quality page.

1. Give the diagnosis an owner

On September 21 a full test run took 417 seconds for 1,487 tests. As the test count grew, so did the wait. On October 19 a run took 825 seconds, and my design notes already explained why: every group of tests ran one after another on a single machine, and splitting the work across two machines would bring it near 520 seconds. I hadn't scheduled that fix.

By November 10 a full run took 1,148 seconds, about 19 minutes, and the same explanation had been written a second time. That afternoon I made the fix my priority and gave the job to one Claude agent with nothing else on its list. The tests now run in five groups side by side, and the slowest group, the browser tests, runs in two halves, the way Playwright's sharding is designed to work. Over the ten releases before the change, a full run took 14.8 minutes at the median. Over the fifteen since, it takes 6.9.

James Shore's ten-minute build rule from The Art of Agile Development is the bar I hold it to.

2. Make the rules agree

My Claude agents work from a written instruction file. One line said to leave the slow tests for the final check before release. Another line said to run every test before saving any change. The Claude agents ran everything, every time, because two instructions that disagree get resolved toward more work.

I rewrote both lines to say the same thing: run the tests your change touches, and the final check runs everything.

I know I'm not alone here. Anyone doing AI development or running an LLM software factory hits this one.

3. Watch the gate fail before you trust it

A test gate that shows green proves nothing until you have seen it catch something. Before I trusted the new five-part gate, I broke a test on purpose in every part of it and watched every part go red. A second trial failed once on purpose and passed when run again, to prove a retry reads the right result.

I tested CodeRabbit the same way. I gave it six test changes: three that my coding rules allow and three that they forbid. It stayed quiet on the three allowed changes and flagged exactly the three forbidden ones.

Google built the same idea into its own code reviews. Its mutation testing work, published in IEEE Transactions on Software Engineering in 2021, changes a developer's new code on purpose to see whether the tests notice, inside a code review system used by more than 24,000 developers.

4. Let CodeRabbit stop a release

At first CodeRabbit could only comment. I set it up that way on purpose, so I could see what it reports before giving it any power. This week I decided that a finding it rates Critical will stop the release. Every release already waits for its review, about 10.5 minutes at the median, so the rule adds no extra wait.

Across 22 releases it has raised 27 findings: 2 Major, 21 Minor, 4 Trivial and no Critical yet. 16 of them are fixed, and 2 were answered as wrong with the reason written down.

Before it could block anything, its rules had to match my written coding standards. On November 10 only 1 of its 7 rules did. One rule would have flagged 727 test methods for a standard meant only for production code. All 7 rules now quote my standards word for word, and an automated test fails if they drift apart again.

5. Check Claude like you'd check a person

In one evening the Claude agents made four mistakes a person could make:

  • slipped an unwanted file into a change, caught by reading the list of changed files
  • wrote a test that shut down its own terminal, caught when the terminal closed
  • took a release number another Claude agent had already reserved, caught before release
  • skipped a build step, caught when the automated checks went red

My checks caught all four before anything reached the live site.

Why both ends

Google's 2024 DORA report, published October 22, 2024, found delivery stability dropped an estimated 7.2% as AI adoption rose. GitClear's study of 211 million lines of code, covered by DevClass on February 20, 2025, found 2024 was the first year that copy-pasted lines outnumbered moved lines, a sign of less cleanup and more duplication. Those findings are why I check the code on both ends.

More from the same two weeks

  • Check the passes too. A second review that worked out every result again found a reviewer rule marked as matching my standards that did not. A review that only rereads the failures inherits the first reviewer's blind spot.
  • Know what your number measures. The site's published test time ran until the release step, and the release step waits for CodeRabbit. Once the tests got faster, that number was really CodeRabbit's time, so the site now shows the two separately.
  • A new tool brings work nobody ordered. Every release now opens a pull request for CodeRabbit, and on November 10 those pull requests sent me 29 emails in one day.
  • Reserve the release number at the last moment. One release passed every test and was still refused, because a number reserved hours earlier by another Claude agent had not been released yet.
  • A wait that reads nothing looks like waiting. One Claude agent's progress check failed on every read and looked exactly like a slow job. Every wait now prints each read with its time.
  • Count the whole cost of the faster tool. A local database emulator ran the tests in 106 seconds against 154 on the real cloud database, but it adds about 30 seconds to start and needs an access key into a database built to use none. I did not adopt it.

A simple way to remember:

  • Diagnosis → give it an owner
  • Rules → make them agree
  • Gate → watch it fail first
  • CodeRabbit → let it stop a release
  • Claude → check it like a person

What stops a bad AI-written change from reaching production on your team?

References

The slides (8)

12 reads on TheYard2 this week

Steven Stout

Steven Stout

Staff .NET engineer · Remote

I have spent twelve years building full stack software in C#, SQL Server, React and Azure.

About StevenCheck my work

02What has to work, where is it today, and what does success look like?

Book 20 minutes opens an email to me with those three questions in it, and I answer with a time.

Book 20 minutes

Your email app should have opened with this message. If it did not, copy it and send it from any mailbox.

Or message me on LinkedIn