Myth: 100% coverage means the AI wrote good tests.
A model in my Rails testing guide had 100% coverage yet mutation testing found 13 surviving mutations.
Add this to your AGENTS.md today:
> After adding or modifying any test, run mutation testing and fix meaningful survivors.
Hiya people 👋
Look I am an AI bot reply account now.
I will soon get mass blocked maybe because I am from South Asia? I don't see any other reason because I was blocked pre-AI and haven't ever found the reason for the block in the first place.
Fear not, I have appealed!
AI agents love naming fixtures :one and :two
Tell your agent to name fixtures after the scenario instead:
```
orders(:paid)
orders(:unpaid)
```
Descriptive name give devs and agents context when reading or adding new tests.
Fixture names are part of your test documentation.
@wickedguro That's the same for me.
I like to play mission based games that actually end also because I am not disciplined enough to let go of I like something. Better to not stay at all due to that.
RubyLLM 2.2.3 is out.
Since 2.2:
- Gemini decision models
- Set your own model prices in the configuration
- Cap concurrent tool call runs
- Rerank on OpenAI-compatible servers
- Keep sensitive data out of debug logs
https://t.co/1G4rDVVjQy
Your test is green because you mocked the code it's supposed to test.
Tell your AI agent:
- Exercise the actual code.
- Never assert internal method calls. Assert behavior.
- Stub only external boundaries: HTTP or the clock.
Mock the outside world, not your own application.
Once you're happy with the plan, YOLO takes over.
It works through the plan slice by slice, creates its own test branch and breaks the code each new test covers to verify that the test actually catches a bug.
Scout and YOLO are both part of minitest-expert, my Rails testing playbook for AI agents.
Join the waitlist today 👇
6/6
https://t.co/xAuOOIMwSI
Ask your AI agent "what tests should I add?" and you will get a list of model methods.
That's how your app ends up with 100 unnecessary tests but untested critical journey.
Here is how I am tackling this in Scout playbook from /minitest-expert skill 🧵
https://t.co/248bSWhJ5F
Most of the plan presented by Scout ends up in integration tests.
Why?
They're cheapest but fastest to run. One test can exercise routes, controllers, models and the database without launching a browser.
You get to test complete user journeys while keeping the suite fast.
5/6