Issue #3529128: Setup PHPUnit testing command
For #3529128
- Adds a new
composer run phpunitcommand - Adds test suite splitting and parallelisation to GitLabCI for PHPUnit
Testing instructions
- Try the different methods of running
composer run phpunitdescribed indocs/testing/phpunit.md - Add a Build test locally to
tests/src/Build/DeleteMeTest.php
<?php
declare(strict_types=1);
namespace Drupal\Tests\canvas\Build;
use Drupal\BuildTests\Framework\BuildTestBase;
// This file exists only to verify ForbiddenTestTypesSniff catches Build tests.
// Delete it once confirmed.
class DeleteMeTest extends BuildTestBase {
public function testNothing(): void {}
}- Run
composer run phpcsand verify this raises an error
Edited by Wim Leers