Testing

15 guides tagged “Testing”.

  1. How to Stop an Agent From Gaming Its Own Tests Agents optimise for the signal you give them. Make the tests independent, review test changes as strictly as code, and verify by mutation. Software Engineering intermediate 5 min
  2. Why Does My Agent Say the Tests Pass When They Fail? The agent is usually reporting a command it did not run, a subset it did run, or output it misread. Require the command and the raw result. Software Engineering beginner 5 min
  3. How to Speed Up CI Builds (Without Skipping Tests) Slow pipelines get bypassed. Cut time with dependency caching, parallel jobs, test splitting, and smaller images - not by disabling checks. DevOps intermediate 5 min
  4. How to Write Acceptance Criteria an AI Agent Can Verify An agent satisfies the literal text it is given. Criteria must describe observable behaviour, include boundaries, and avoid adjectives. Software Engineering intermediate 5 min
  5. Spec-Driven Development: A Worked Example A complete spec for one endpoint: goal, contract, rules, acceptance criteria, and non-goals. The same structure scales to a migration. Software Engineering intermediate 5 min
  6. Spec-Driven Development Tools Compared Spec tooling falls into plain markdown, structured toolkits, IDE-native workflows, and registries. They trade flexibility for enforcement. Software Engineering intermediate 5 min
  7. Spec-Driven Development vs TDD: Which Comes First? TDD drives design with failing unit tests; spec-driven development fixes behaviour and contracts first. They operate at different altitudes. Software Engineering intermediate 5 min
  8. How to Test AI-Generated Code (Before It Reaches Production) AI-generated code needs a higher testing bar, not a lower one. Learn how to write tests you can trust, find the gaps, and verify before merge. Software Engineering intermediate 9 min
  9. How to Debug AI-Generated Code: A Complete System for When You Don't Understand What the AI Wrote Your AI wrote 300 lines and you don't know what any of it does — and now it's broken. Here's a repeatable debugging system: isolate, bisect, instrument, explain. No prior understanding required. Software Engineering beginner 12 min
  10. Software Engineering for AI Builders: The Concepts Your Coding Assistant Won't Teach You Your AI writes the code, but it doesn't teach you testing, architecture, databases, or Git. Learn every software engineering concept you need to go from vibecoding to shipping. 45+ linked guides. Software Engineering beginner 15 min
  11. How to Write Your First Unit Test Write your first unit test in Python with pytest: a real function, a real test, and the red-green cycle. A first-principles tutorial for beginners. Software Engineering beginner 7 min
  12. What Is Test-Driven Development (TDD)? TDD writes a failing test first, then the minimum code to pass it, then refactors. Learn the red-green-refactor cycle and why it matters. Software Engineering beginner 7 min
  13. How to Debug AI-Generated Code When You Don't Understand It Debugging code you didn't write is a skill. Learn the method: read the error, reproduce minimally, bisect the change, and interrogate the code. Software Engineering intermediate 5 min
  14. What Is Linting (and Why Does the AI's Code Keep Failing It)? A linter checks code for bugs, style problems, and dangerous patterns before it runs. Learn how to set one up and why AI-generated code needs it. Software Engineering beginner 5 min
  15. Unit vs Integration vs End-to-End Tests: What's the Difference? Unit tests check one piece, integration tests check pieces together, and end-to-end tests check the whole user flow. A comparison table. Software Engineering beginner 7 min