Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Allow profiles to provide kernel tests.
Proposed resolution
Add profiles to phpunit.xml.dist
Comment | File | Size | Author |
---|---|---|---|
#9 | interdiff.txt | 1 KB | benjy |
#9 | 2597303-8.patch | 1.43 KB | benjy |
phpunit.patch | 584 bytes | benjy | |
Comments
Comment #2
dawehnerInteresting, I would have expected that those kernel tests would be more of a module level thing, do you mind giving a concrete usecase example?
Comment #3
benjy CreditAttribution: benjy at PreviousNext commentedMy current example is a fork of Drupal\KernelTests\Config\DefaultConfigTest specifically for testing the configuration shipped with an install profile.
It doesn't seem like something that we should restrict users from doing unless there is an unwanted side-effect? I'm sure people will come up with other genuine use cases.
Comment #4
larowlanyes we can
Comment #5
tim.plunkettThis just concerns testing improvements.
Comment #6
dawehner@benjy
Yeah I was just primarily interested why you wanna use it ...
RTBC + 1
Comment #7
alexpottLet's make this generic and support unit tests and functional tests too
Comment #8
dawehnerOh I would have explicitly assumed that the other ones have been supported already
Comment #9
benjy CreditAttribution: benjy at PreviousNext commentedSounds reasonable.
Comment #10
dawehnerThank you @benjy
Comment #11
alexpottCommitted a7212fc and pushed to 8.0.x. Thanks!
Comment #13
andypostClosed duplicate #2597041: The profile dir is disabled for testing