☝️Continuation ☝️

Speaker(s)

brentgees

Session track

Code & Development

Experience level

Beginner

Duration

50 min

In this session I'll cover how you can get started with writing tests for drupal.org contrib projects or drupal core.

The session will be divided in 3 bigger parts:

  • I'll first cover what testing is and how a test works, I'll cover the types of test and what the differences are
    • What is testing
    • Why you should write tests
    • Unit testing
    • Kernel testing
    • Functional testing
    • How to setup testing on your local machine
       
  • Writing tests on your own modules or existing modules (without tests available)
    • Start with simple things
    • How to create a roadmap
    • What files you'll need
    • How to set it up on your drupal module
    • General tips and tricks on how to write them better
       
  • Writing tests on already existing modules (with tests available) or drupal core
    • Discuss the advantages on adding tests on existing modules
    • How you can find modules to write tests on drupal.org

The reasons I'm choosing for this session is because on drupalcon vienna last year, I also got started in writing tests for contrib modules, and I think it's the ideal way to get more into contributing.
So my goal is that after this session, at least some people get out of the session, and start writing some test for their (or other) modules.

 

This presentation will be mostly similar to the session given at Dev days (https://lisbon2018.drupaldays.org/sessions/how-get-started-writing-tests-contrib)