Uncommitted changes
BIN
tdd-test-driven-drupal/2018-06-14-drupal-somerset/slides2.pdf
Normal file
BIN
tdd-test-driven-drupal/2018-07-05-drupal-dev-days/slides.pdf
Normal file
|
@ -1,11 +0,0 @@
|
|||
# TDD - Test Driven Drupal
|
||||
|
||||
Testing is important. Why? It allows developers to add new features and edit and refactor existing code without the worry of adding regressions, reduces the reliance on manual testing to discover bugs, and by taking a test driven approach, your implementation code is leaner as you only write what is needed for your tests to pass.
|
||||
|
||||
Drupal 7 includes the SimpleTest module for unit and functional testing, whilst Drupal 8 also includes and supports PHPUnit - the defacto PHP testing framework, used by other PHP projects including Symfony and Laravel - making it easier for people to test their code. Also, with testing being one of the Drupal core gates with tests needing to be included with every new feature or bug fix, and core’s 100% pass rate policy, testing has become an essential skill when contributing to core, or when working on your own projects.
|
||||
|
||||
In this talk, we’ll cover the methodology and terminology involved with automated testing, and then take a test driven approach to creating a new Drupal module.
|
||||
|
||||
**Note:**
|
||||
|
||||
Currently updating this talk with more Drupal 8 content and examples.
|
BIN
tdd-test-driven-drupal/images/broadbean-drupal-flow-1.png
Normal file
After Width: | Height: | Size: 31 KiB |
BIN
tdd-test-driven-drupal/images/broadbean-drupal-flow-2.png
Normal file
After Width: | Height: | Size: 45 KiB |
BIN
tdd-test-driven-drupal/images/d8-simpletest-1.png
Normal file
After Width: | Height: | Size: 381 KiB |
BIN
tdd-test-driven-drupal/images/d8-simpletest-2.png
Normal file
After Width: | Height: | Size: 398 KiB |
BIN
tdd-test-driven-drupal/images/d8-simpletest-3.png
Normal file
After Width: | Height: | Size: 338 KiB |
BIN
tdd-test-driven-drupal/images/d8-simpletest-4.png
Normal file
After Width: | Height: | Size: 370 KiB |
BIN
tdd-test-driven-drupal/images/d8-simpletest-5.png
Normal file
After Width: | Height: | Size: 430 KiB |
BIN
tdd-test-driven-drupal/images/d8-simpletest-6.png
Normal file
After Width: | Height: | Size: 433 KiB |
BIN
tdd-test-driven-drupal/images/d8-simpletest-7.png
Normal file
After Width: | Height: | Size: 663 KiB |
BIN
tdd-test-driven-drupal/images/ddd-1.jpeg
Normal file
After Width: | Height: | Size: 1.1 MiB |
BIN
tdd-test-driven-drupal/images/ddd-2.jpeg
Normal file
After Width: | Height: | Size: 51 KiB |
BIN
tdd-test-driven-drupal/images/ddd-3.jpeg
Normal file
After Width: | Height: | Size: 55 KiB |
BIN
tdd-test-driven-drupal/images/ddd-4.jpeg
Normal file
After Width: | Height: | Size: 107 KiB |
BIN
tdd-test-driven-drupal/images/ddd-5.jpg
Normal file
After Width: | Height: | Size: 1.8 MiB |
BIN
tdd-test-driven-drupal/images/ddd-5.png
Normal file
After Width: | Height: | Size: 574 KiB |
BIN
tdd-test-driven-drupal/images/phpstorm-integration.png
Normal file
After Width: | Height: | Size: 660 KiB |
BIN
tdd-test-driven-drupal/images/tada.png
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
tdd-test-driven-drupal/images/tawny-tweet-1.png
Normal file
After Width: | Height: | Size: 434 KiB |
BIN
tdd-test-driven-drupal/images/tawny-tweet-2.png
Normal file
After Width: | Height: | Size: 148 KiB |
BIN
tdd-test-driven-drupal/images/tdd-blog-1.png
Normal file
After Width: | Height: | Size: 413 KiB |
BIN
tdd-test-driven-drupal/images/tdd-blog-2.png
Normal file
After Width: | Height: | Size: 523 KiB |
BIN
tdd-test-driven-drupal/images/tdd-blog-3.png
Normal file
After Width: | Height: | Size: 60 KiB |
BIN
tdd-test-driven-drupal/images/tdd-blog-4.png
Normal file
After Width: | Height: | Size: 68 KiB |
BIN
tdd-test-driven-drupal/images/tdd-blog-5.png
Normal file
After Width: | Height: | Size: 75 KiB |
BIN
tdd-test-driven-drupal/images/tdd-blog-directories.png
Normal file
After Width: | Height: | Size: 64 KiB |
BIN
tdd-test-driven-drupal/images/tdd-blog-installed.png
Normal file
After Width: | Height: | Size: 317 KiB |
|
@ -1,2 +1,3 @@
|
|||
- Show composer.json setup
|
||||
- Show `fin phpunit`
|
||||
- Add "things you can test" and "things you shouldn't test"
|
||||
|
||||
|
|