Skip to content

Fix PHPUnit extension test discovery - #78

Merged
lennartvava merged 1 commit into
developfrom
feature/fix-phpunit-extension-discovery
Sep 18, 2026
Merged

lennartvava merged 1 commit into
developfrom
feature/fix-phpunit-extension-discovery

Conversation

@lennartvava

Copy link
Copy Markdown
Contributor

Summary

Fix PHPUnit configuration generation for Drupal extensions so test and source discovery no longer recursively scans Composer dependencies.

Changes

  • Restrict extension test-suite discovery to project tests/ and optional modules/ paths.
  • Restrict coverage source discovery to project src/ and optional modules/ paths.
  • Prevent PHPUnit from traversing vendor/, which could cause test runs to stall or exceed CI timeouts.
  • Add regression coverage for the generated extension PHPUnit configuration.
  • Add the missing 5.0.1 changelog entry and document the 5.0.2 fix.

Verification

  • composer validate --strict
  • vendor/bin/phpunit --configuration=phpunit.xml.dist tests/src/Unit/GrumPHP/ConfigFileMergerTest.php
  • git diff --check

@lennartvava
lennartvava requested a review from Jelle-S September 18, 2026 12:35
@lennartvava
lennartvava force-pushed the feature/fix-phpunit-extension-discovery branch from 73300fb to 73d66b3 Compare September 18, 2026 12:38
@lennartvava
lennartvava merged commit cc58160 into develop Sep 18, 2026
8 checks passed
@lennartvava
lennartvava deleted the feature/fix-phpunit-extension-discovery branch September 18, 2026 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants