This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
oliverdavies.uk-old-sculpin/source/_talks/tdd-test-driven-drupal.md
2019-07-26 19:45:56 +01:00

4.3 KiB
Raw Blame History

title description speakerdeck video tags has_tweets image use events
TDD - Test Driven Drupal How to write automated tests for Drupal, and how to create a new Drupal module using test driven development.
id ratio url
088cb18033064f5cb18d1079795294a1 1.77777777777778 https://speakerdeck.com/opdavies/tdd-test-driven-drupal
type id
youtube 3AUhpkxZ7DQ
drupalcamp
simpletest
phpunit
testing
true
url width height type
/images/talks/test-driven-drupal-development.png 2560 1440 image/png
talks
event date time
drupalcamp_london_17 2017-03-04 16:15 - 17:00
event date time
drupalcamp_dublin_17 2017-10-21 12:00 - 12:40
event date
drupal_bristol 2017-11-22
event date
drupal_somerset 2018-06-14
event date time
drupal_dev_days_18 2018-07-05 12:15 - 13:00
event date time
drupalcamp_london_19 2019-03-02 14:00 - 14:45

{% block content %} 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. And with testing being one of the Drupal core gates with tests needing to be included with every new feature or bug fix, and cores 100% pass rate policy, testing has become an essential skill when contributing to core, or when working on your own projects.

In this talk, well cover the methodology and terminology involved with automated testing, and then take a test driven approach to creating a new Drupal module. {% endblock %}

{% block tweets %}

{% include 'tweet' with { content: '

An informative session on #TDD #Drupal
"Test Driven Drupal Development with SimpleTest and PHPUnit - Oliver Davies"@opdavies Thanks ! :) https://t.co/xQNaq8e0zU

— जयदीप सिंह कण्डारी (@JayKandari) December 9, 2017', } %}
{% include 'tweet' with { content: '

Really motivational and well delivered talk from @opdavies tonight. Structured brilliantly - I don't think anybody left not wanting to write tests! "Test Driven Drupal" 💧 #Drupal8 #testing #drupal pic.twitter.com/bvQf7WFwdy

— Drupal Somerset (@drupalsomerset) June 15, 2018', } %}
{% include 'tweet' with { content: '

Terrible quality photo but the talk drove me to test and it's great so far, it's really helped give me peace of mind and helped me uncover a bug I wouldn't have otherwise :) so thank you 😁

— Tawny Bartlett (@littlepixiez) June 19, 2018', no_parent: true, } %}
{% endblock %}