~/talk

Test driven development in Drupal 8

Talkat DrupalCamp Spain 2017 · 2017-05-05..05-06· [testing, php]
slides:none on file

Tests are used to drive module design and catch regressions, demonstrated with a working Connect Four module (repo: nuez/connect_four). Concrete tooling: Unit, Kernel, Browser, JavaScript tests using PHPUnit, Mink, PhantomJS (PhantomJS noted as unmaintained), and Prophecy mocks for fast unit tests. Unit tests run in milliseconds, kernel tests need partial bootstrap, browser/JS tests require full installs and are slow. A YAML data provider runs three scenarios to verify the “get maximum moves in line” logic; tests pass and the game works.

AI-written summary · about

  1. 0:00Start
  2. 0:14Test-Driven Development in Drupal 8
  3. 2:27Kernel Test
  4. 6:01How Do I Start with Testing in Drupal 8
  5. 6:52Where Do these Tests Go
  6. 8:21Maximum Sum of Simultaneous Connections
  7. 9:26Build a Module
  8. 16:42Write a Kernel Test
  9. 18:47Data Provider
  10. 23:29Unit Test
  11. 28:28Javascript Test
  12. 31:46Why You Would Test
  13. 32:27Kernel Tests
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.