Mistral AI's Applied AI Proto team, led by Maxime Langelier and Mathis Grosmaitre, details building an autonomous agent that generates Ruby on Rails tests automatically. The post addresses a persistent gap in development workflows: writing tests is known to be valuable yet routinely skipped. By delegating this task to an AI agent, teams can maintain higher test coverage without developer friction.
Mistral AI describes an autonomous Rails testing agent built on its open-source Vibe coding assistant. The agent reads Rails files, applies file-type-specific skills, generates or improves RSpec tests, and validates them with RuboCop, RSpec, and SimpleCov. In a 275-file experiment, it reached 100% passing tests, 100% average line coverage, zero RuboCop violations, and a higher LLM-as-a-judge score, while stressing that generated tests must actually run.