Suggest an editImprove this articleRefine the answer for “What is the optimal ratio between unit, integration and E2E tests?”. Your changes go to moderation before they’re published.Approval requiredContentWhat you’re changing🇺🇸EN🇺🇦UAPreviewTitle (EN)Short answer (EN)**The optimal ratio of tests** according to the classic testing pyramid is 70% unit tests, 20% integration tests and 10% E2E tests. **Key point:** the bulk of tests (70%) sit at the unit level, while E2E tests make up the smallest share, just 10%.Shown above the full answer for quick recall.Answer (EN)ImageThe optimal classic ratio (according to the testing pyramid): - **70%**: unit tests - **20%**: integration tests - **10%**: E2E testsFor the reviewerNote to the moderator (optional)Visible only to the moderator. Helps review go faster.