Skip to content

Maintaining Drupal distributions Peter Majmesku

Marie-Louise edited this page Mar 9, 2019 · 3 revisions

Distributions are full copies of Drupal that include Drupal Core, along with additional software such as themes, modules, libraries, and installation profiles. There are two main types of Drupal distributions:

Full-featured distributions: complete solutions for specialized use cases. Other distributions: quick-start tools, starting points for developers and site builders. the purpose of drupal 8 distributions

drupal distribution

"A Drupal distribution is collection of Drupal and other software components built, assembled and configured so that it can be used essentially "as is" for its intended purpose."

contribution

some available drupal 8 distributions

basic components of distribution

required (just need one file) profile.info.yml file

behat is used to test drupal in the browser

drupal module which helps to extract the original english text so that you can translate it in to another language

when developing your own drupal distributions i would advise you to check what the other distributions are doing

unit tests

Testing without a database connection Testing of the smallest application part (unit) Testable code will be developed de-coupled from its ()

functional tests testing with a database connection we can instatiate ...

behat tests (acceptence tests) end to end tests

use the drupal behat extension

wraith - screenshot comparison testing tool

ignoring the testing pyramide

acceptence tests at the top then functional tests the unit tests at the bottom

Spotify are mainly writing unit tests and try to write less functional tests

in distrution projects

the code of those projects is on github or elsewhere not on drupal.org

Clone this wiki locally