From 8ee72948b913956c01221aa6b5fd1a8c257fe348 Mon Sep 17 00:00:00 2001 From: vitaliy Date: Sat, 8 Feb 2025 21:40:40 +0200 Subject: [PATCH] 2474: Update test exclusions and add Kover instrumentation config Removed outdated exclusion for test classes related to Magento actions. Added Kover instrumentation configuration to exclude Apache Velocity classes from coverage calculation, improving test coverage precision. --- build.gradle.kts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index 2e06a62bb..e319a0e3d 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -137,7 +137,6 @@ tasks { } test { - exclude("com/magento/idea/magento2plugin/actions/**") //https://github.com/magento/magento2-phpstorm-plugin/issues/2474 useJUnitPlatform() } @@ -239,3 +238,11 @@ fun getChangedFiles(): List { // Return the list of touched files return files } + +kover { + currentProject { + instrumentation { + excludedClasses.add("org.apache.velocity.*") + } + } +}