mediacurrent/ci-tests

Scripts helpful for testing a Drupal site on a Continuous-Integration server, or locally.

Maintainers

Package info

bitbucket.org/mediacurrent/ci-tests

Issues

pkg:composer/mediacurrent/ci-tests

Statistics

Installs: 93 038

Dependents: 1

Suggesters: 0


README

This package provides a collection of helpful scripts for testing a Drupal site on a Continuous Integration (CI) server or locally.

Features ✨

This package includes the following example tests:

  • code-fixer.sh: PHP Code Beautifier and Fixer (PHP CS Fixer)
  • code-sniffer.sh: PHP CodeSniffer (PHPCS)
  • cypress/: Cypress End-to-End Testing
  • pa11y/pa11y-review.sh: Pa11y Accessibility Testing
  • phpunit.sh: PHPUnit (Unit & Kernel tests)
  • playwright/: Playwright End-to-End and Visual Regression Testing

Installation 💻

🪟 Windows-based users: check out these installation docs.

  1. Require the package using Composer:

    composer require mediacurrent/ci-tests
    
  2. Repository Configuration (if necessary):

    If the package is not found, you might need to add it to the repositories section of your composer.json:

    "repositories": [
        {
            "type": "vcs",
            "url": "git@bitbucket.org:mediacurrent/ci-tests.git"
        }
    ]
    
  3. Initialize Tests:

    Run the following script from your project's root directory to copy the example tests into your project:

    ./vendor/mediacurrent/ci-tests/scripts/tests-init.sh
    

    📝 Note: This script copies the ./vendor/mediacurrent/ci-tests/tests directory to ./tests. It will not overwrite any existing files in your ./tests directory.

Credits 🙏