From a535a995418e8d8ffe718f47593a202589887b9d Mon Sep 17 00:00:00 2001 From: Jeroen Schweitzer Date: Tue, 30 Dec 2025 15:30:13 +0100 Subject: [PATCH] docs: add testing requirements to AGENTS.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add Testing Requirements section with explicit test-before-commit rule - Fix project type reference (FastAPI -> Flutter) ๐Ÿค– Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- AGENTS.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/AGENTS.md b/AGENTS.md index d13b81c..56cd1ab 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -6,7 +6,7 @@ This document contains instructions and documentation references for AI assistan # AGENTS.md > **Start every session by reading this file.** -> This file outlines the operational protocols, coding standards, and architectural decisions for this FastAPI project. +> This file outlines the operational protocols, coding standards, and architectural decisions for this Flutter project. ## 1. Agent Operational Protocols @@ -39,6 +39,13 @@ This document contains instructions and documentation references for AI assistan * `refactor: split monolith dependency file` * **Atomic Commits:** Keep commits small. One logical change = one commit. +### ๐Ÿงช Testing Requirements +* **Always add tests for new code before committing.** No exceptions. +* Tests should cover the happy path and key edge cases. +* Run `flutter test` before committing to ensure all tests pass. +* For widgets: use widget tests. For business logic: use unit tests. +* Code coverage should not decrease with new commits. + ### ๐Ÿ“ Changelog Maintenance * **Update `CHANGELOG.md`** with every user-facing change. * Format: `## [Unreleased] - YYYY-MM-DD` followed by `### Added`, `### Changed`, or `### Fixed`. \ No newline at end of file