Chat on WhatsApp

Does Claude Code write proper Magento tests (MFTF + PHPUnit)?

Yes. We make “tests included” a hard rule in CLAUDE.md, so every feature ships with: (a) PHPUnit unit tests for service classes (mocked dependencies, > 70% coverage on new code); (b) MFTF (Magento Functional Testing Framework) coverage for admin grids, storefront checkouts, and any flow with side-effects; (c) integration tests against a real Magento install where DI / events matter. Tests are generated alongside features and run in CI before any PR is merged. We’ve built a slash-command (/test-coverage-report) that produces a per-class coverage diff.

Was this helpful?