Problem/Motivation

Allow profiles to provide kernel tests.

Proposed resolution

Add profiles to phpunit.xml.dist

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

benjy created an issue. See original summary.

dawehner’s picture

Interesting, I would have expected that those kernel tests would be more of a module level thing, do you mind giving a concrete usecase example?

benjy’s picture

My 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.

larowlan’s picture

Status: Needs review » Reviewed & tested by the community

yes we can

tim.plunkett’s picture

Issue tags: +rc eligible

This just concerns testing improvements.

dawehner’s picture

@benjy
Yeah I was just primarily interested why you wanna use it ...
RTBC + 1

alexpott’s picture

Status: Reviewed & tested by the community » Needs work

Let's make this generic and support unit tests and functional tests too

dawehner’s picture

Oh I would have explicitly assumed that the other ones have been supported already

benjy’s picture

Status: Needs work » Needs review
FileSize
1.43 KB
1 KB

Sounds reasonable.

dawehner’s picture

Status: Needs review » Reviewed & tested by the community

Thank you @benjy

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed a7212fc and pushed to 8.0.x. Thanks!

  • alexpott committed a7212fc on 8.0.x
    Issue #2597303 by benjy: Kernel Tests should be allowed in profiles
    
andypost’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.