ellioseven / titus-test

A Drupal distribution for regression testing.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Titus - Testing Distribution

The Titus testing distribution provides regression testing capabilities for the Titus administration theme. It will install and configure an instance with generated content.

Requirements

  • Docker (17.05.0)
  • Docker Compose (1.8.0)

Installation

Clone the profile from the document root:

git clone --recursive git@github.com:ellioseven/titus-test.git profiles/titus_test

Install the profile:

./profiles/titus_test/scripts/install.sh

Configuration

Copy scripts/test/docker-compose.override.example.yml to scripts/test/docker-compose.override.yml and replace the environment values.

Running Tests

cd profiles/titus_test/scripts/test
make build
make test

This will install node dependencies and start running the tests defined in scripts/test/tests.

Snapshots

Snapshots are first generated in the scripts/test/snapshots directory. To regenerate snapshots, simply remove existing snapshots and re-run the tests.

Tests

All tests are defined in scripts/test/tests. In most cases, they will simply load a page, take a snapshot (if it doesn't exist already) or compare a snapshot (if it exists).

You will be able to view diffs in scripts/test/snapshots/__diff_output__.

About

A Drupal distribution for regression testing.


Languages

Language:JavaScript 94.8%Language:Shell 3.5%Language:Makefile 1.7%