From 9a38b02544d4101581134cd3cdabf1ff3a431cf0 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Mon, 14 May 2018 16:02:33 +0100 Subject: [PATCH 1/3] Update page --- source/test-driven-drupal.md | 62 ++++++++++++++++++++++++++++++++++++ tailwind.js | 6 ++++ 2 files changed, 68 insertions(+) create mode 100644 source/test-driven-drupal.md diff --git a/source/test-driven-drupal.md b/source/test-driven-drupal.md new file mode 100644 index 00000000..c4d16da6 --- /dev/null +++ b/source/test-driven-drupal.md @@ -0,0 +1,62 @@ +--- +layout: page +title: 'Test Driven Drupal: The Book' +mailchimp_url: 'https://oliverdavi.us18.list-manage.com/subscribe/post?u=b4ac8dd177796d37b93f9c285&id=033c84e0d5' +contact_email: 'oliver@testdrivendrupal.com' +--- +Having [given talks][1] and [written blog posts][0] about automated testing in Drupal, I’m currently in the planning phase of a book and potentially some accompanying screencasts about it, focussing on Drupal 8. + +I’m still thinking about what use-cases to cover and examples to include, but here are some of the things I’m considering: + +- What things to test, and what not to test +- The different types of available tests, and when to use each +- How to write testable code +- How to run tests in the Drupal UI +- How to run tests with the `run-tests.sh` script +- How to install, configure and run tests with PHPUnit in Drupal 8 +- How to write your first test +- How to organise your test files +- Selecting the right base class and using test traits +- Writing your own base test classes, traits and assertions +- Managing dependencies for your tests (fields, configuration) +- Creating users, checking access with roles and permissions +- Creating pages and blocks with Views and testing the output +- Creating pages with routes and controllers and testing the output +- Testing custom plugins +- Testing queuing items and processing queues +- Testing sending emails +- Testing custom Twig filters and functions + + +- Running tests as part of your continuous integration pipeline + +I’ll most likely be publishing it via Leanpub, and will be sending free chapters, early-bird discounts and links to screencasts and blog posts as I write the book to subscribers of the mailing list. + +If you have questions or would like to suggest something for me to include in the book, please contact me. + +## Mailing List + +
+
+
+
+ + +
+
+ + +
+ +
+
+
+
+
+ + + +[0]: {{site.url}}/blog/tags/testing +[1]: {{site.url}}/talks/tdd-test-driven-drupal +[2]: {{site.url}}/contact diff --git a/tailwind.js b/tailwind.js index 4080e7f5..50a89736 100644 --- a/tailwind.js +++ b/tailwind.js @@ -294,4 +294,10 @@ module.exports = { packages: { }, + options: { + important: true, + separator: ':', + prefix: '' + } + } From e6b06934cc4fba093df283507466ba69dfffe631 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 15 May 2018 06:52:50 +0100 Subject: [PATCH 2/3] Add redirect --- ansible/provision.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/ansible/provision.yml b/ansible/provision.yml index fb6abb4c..7fca4d88 100644 --- a/ansible/provision.yml +++ b/ansible/provision.yml @@ -158,6 +158,7 @@ rewrite ^/blog/2018/03/04/tweets-from-drupalcamp-london/?$ /blog/tweets-from-drupalcamp-london permanent; rewrite ^/blog/2018/05/06/creating-a-custom-phpunit-command-for-docksal/?$ /blog/creating-a-custom-phpunit-command-for-docksal permanent; rewrite ^/blog/announcing-the-drupal-vm-generator/?$ /blog/announcing-the-drupal-vm-config-generator permanent; + rewrite ^/book/?$ /test-driven-drupal permanent; rewrite ^/consulting/?$ / permanent; rewrite ^/cv/?$ https://gitprint.com/opdavies/cv/blob/master/README.md permanent; rewrite ^/drupalgive/?$ https://www.drupal.org/u/opdavies permanent; From b67f059f5ffa646e1c37586b98693ba3ad5f9490 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 15 May 2018 08:50:19 +0100 Subject: [PATCH 3/3] Add testing tag --- .../2013-06-13-some-useful-links-using-simpletest-drupal.md | 1 + source/_posts/2018-05-06-creating-custom-docksal-commands.md | 1 + 2 files changed, 2 insertions(+) diff --git a/source/_posts/2013-06-13-some-useful-links-using-simpletest-drupal.md b/source/_posts/2013-06-13-some-useful-links-using-simpletest-drupal.md index 8cbb910d..d702e00b 100644 --- a/source/_posts/2013-06-13-some-useful-links-using-simpletest-drupal.md +++ b/source/_posts/2013-06-13-some-useful-links-using-simpletest-drupal.md @@ -7,6 +7,7 @@ tags: - test-driven-development - drupal-planet - drupal + - testing use: [posts] --- {% block excerpt %} diff --git a/source/_posts/2018-05-06-creating-custom-docksal-commands.md b/source/_posts/2018-05-06-creating-custom-docksal-commands.md index 9a8e16f0..5e8b340a 100644 --- a/source/_posts/2018-05-06-creating-custom-docksal-commands.md +++ b/source/_posts/2018-05-06-creating-custom-docksal-commands.md @@ -7,6 +7,7 @@ tags: - drupal-8 - drupal-planet - phpunit + - testing --- ## What is Docksal?