~/talk

Building a Pyramid: Symfony Testing Strategies

Talkat SymfonyLive London 2015 · 2015-09-17..09-18· [testing, php]
slides:none on file

Argues for a strict testing pyramid: thousands of unit tests (run in seconds), a moderate number of service layer acceptance tests (run in minutes), and only a handful of slow, brittle UI tests. Shows Symfony examples: a controller-heavy basket refactored into a testable service; use of PHPUnit, PHPSpec, Behat/Codeception and Ghost Inspector; introduces a FileStore interface and an integration test after a unit test falsely passed because a required finalize upload call was missing.

AI-written summary · about

  1. 0:00Introduction and speaker
  2. 0:46Why automate testing
  3. 2:12Choosing testing tools
  4. 4:01The testing pyramid explained
  5. 6:50UI layer testing
  6. 8:14Service layer testing
  7. 8:55Unit testing fundamentals
  8. 12:27Regression vs acceptance tests
  9. 13:51Legacy code testing example
  10. 18:05Writing acceptance tests
  11. 21:36Customer conversation in testing
  12. 23:46Service-level acceptance tests
  13. 26:11Reducing UI test coverage
  14. 28:00Acceptance test key principles
  15. 28:43Unit tests first approach
  16. 30:10PHPUnit vs PHPSpec for unit tests
  17. 32:20Testing infrastructure interactions
  18. 36:38Layered architecture benefits
  19. 41:15Building the testing pyramid
  20. 43:24Q&A session
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.