BrowserTestBase tests do not generate code coverage

Created on 10 May 2024, 10 months ago

By following the documentation you can create functional tests to verify the functioning of Drupal as a whole.

The official doc is here:
https://www.drupal.org/docs/develop/automated-testing/phpunit-in-drupal/...

However, unlike UnitTestCase and KernelTestBase tests, BrowserTestBase type do not generate code coverage.

When BrowserTestBase type tests fail the exception raised is "Behat\Mink\Exception" but from behat documentation https://behat.cc/en/stable/ the generation of the code coverage report seems supported.

in summary: are BrowserTestBase type tests expected to generate coverage?

If coverage is expected to be generated, how do you activate it?

💬 Support request
Status

Closed: duplicate

Version

10.2

Component
PHPUnit 

Last updated 4 days ago

Created by

🇮🇹Italy uccio Turin

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024