From 6de11a13d9d53072fea65435c5ebd67b302bfea3 Mon Sep 17 00:00:00 2001 From: Richard Gaunt Date: Fri, 15 Mar 2024 15:56:48 +1100 Subject: [PATCH] Add filters for what files to check for coverage. --- behat.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/behat.yml b/behat.yml index 38941d233..e0ce65b16 100644 --- a/behat.yml +++ b/behat.yml @@ -52,10 +52,23 @@ default: # Show explicit fail information and continue the test run. DrevOps\BehatFormatProgressFail\FormatExtension: ~ DVDoug\Behat\CodeCoverage\Extension: + branchAndPathCoverage: false + # The processUncoveredFiles setting has been removed in php-code-coverage v10.0.0. + includeUncoveredFiles: true filter: include: directories: - 'src': ~ + 'web/modules/custom': ~ + 'web/themes/custom': ~ + 'web/sites/default/includes': ~ + files: + - '/web/sites/default/settings.php' + exclude: + directories: + 'web/modules/custom': + suffix: 'Test.php' + 'web/themes/custom': + suffix: 'Test.php' reports: text: showColors: true