Drupal.org Testing Policy for DrupalCI

In order to satisfy the variety of use-cases for testing while keeping the cost of the testing infrastructure manageable, we have established this testing policy which says what we are willing to support, and additionally what the the user experience should be for working within this framework. From a high level, this policy outlines: what code is tested, in which environments, what tests are run, when we run them, and how the end users configure their projects for these options.

Generating database fixtures for D8 Migrate tests

When writing tests for your D6 / D7 to D8 core migrations, use the database fixtures that are included in Drupal 8 core:
* core/modules/migrate_drupal/tests/fixtures/drupal6.php
* core/modules/migrate_drupal/tests/fixtures/drupal7.php

This is your D6 / D7 source data to write your tests against. If you need extra test data in these database sources, you can modify the fixture using the following method.

Running DrupalCI Locally

This page helps you set up your own instance of the Drupal Testbot for your own local testing purposes. Please be advised that these instructions are written for Unix-like environments in mind.

Using simplytest.me as a project demo

Evaluate Drupal projects online

Target audience: Drupal project maintainers.

On Drupal project pages you might find a 'Try a demonstration' link to evaluate it. A good project demo is one where you can fiddle with the settings and for this you need to provide admin access in a temporary sandbox. This is where simplytest.me comes in handy by allowing anyone to create a temporary Drupal website with any module, theme or distribution.

Configure Environment Indicator 7.x-2.x

Note that the Environment Indicator (envindicator) project was a complete rewrite of Environmental Indicator. This project has been incorporated back into Environment Indicator (environment_indicator) as part of the 7.x-2.x branch.

Key differences with the 7.x-1.x release:

  • You can configure all your indicators from one place.
  • You can position your indicator to not to interfere with your design.
  • You can control permissions per environment. This way you can show the indicator for anonymous users in all the environments except for production.
  • You can export your configurations to code and include them in GIT.
  • It can be used on dynamically generated environments.
  • Your site builders won't need to access your settings.php.
  • It's integrated with the features module.
  • It's integrated with the Toolbar module.
  • Integration with Admin menu module.

Configure Environment Indicator 6.x-1.x & 7.x-1.x

The Environment Indicator settings page allows you to modify some elements of the indicator's behaviour and appearance. Individual settings, such as the text to display and the colour can be overridden for each of your specific environments in the site's settings.php file. This allows you to customise the indicator for each of your environments without needing to make any changes in the database. This means that the Environment Indicator will always display correctly when moving your site from development to staging to production.


Subscribe with RSS Subscribe to RSS - testing