Skip to content

A PHPUnit image with SQLite for running Drupal 8 Unit and Kernel tests.

Notifications You must be signed in to change notification settings

millerrs/docker-phpunit-drupal8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 

Repository files navigation

PHPUnit for Drupal 8

A PHPUnit image with SQLite for running Drupal 8 Unit and Kernel tests.

Usage

docker run -it --rm -v /path/to/tests:/app millerrs/phpunit-drupal8

or

docker run -it --rm -v /path/to/project:/app millerrs/phpunit-drupal8 phpunit -c path/to/custom/config path/to/tests

Usage in Jenkins Pipeline

stage('Run Unit Tests') {
    agent {
        docker {
            image 'millerrs/phpunit-drupal8'
        }
    }
    steps {
        sh 'phpunit -c web/core web/modules/custom'
    }
}

About

A PHPUnit image with SQLite for running Drupal 8 Unit and Kernel tests.

Resources

Stars

Watchers

Forks

Packages

No packages published