A tests-first approach to writing modules
In this session, we shall go through a brief overview of the different kinds of tests you can write in Drupal 8, followed by the benefits of writing the tests first before beginning to code the requirements, including:
- avoiding code bloat
- a clearer perspective on the requirements/user stories
Most of this talk is ideas taken from Growing Object-Oriented Software Guided by Tests and my personal experiences garnered when trying to follow the guidelines in the book.
Prerequisites
Knowledge of Drupal 8 module development
Development
Intermediate
Session type
Session
Speakers