Hello, My project consists of two modules, A and B. Previously, both modules were configured to use JaCoCo in dynamic mode.
In a recent update, module A switched to using JaCoCo in offline mode. Now, when running unit tests in module A, both offline and dynamic modes run simultaneously, causing the following error: arduino 复制代码 Caused by: java.lang.IllegalStateException: Cannot process instrumented class ****. Please supply original non-instrumented classes. I attempted to resolve this issue using the following configuration: groovy 复制代码 tasks.withType(Test) { jacoco.excludes = A module classes } This seems to fix the error. However, I would like to know how to configure JaCoCo in Gradle to exclude the entire module A's classes, or automatically scan and exclude all classes from module A, without manually specifying a list. -- You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/jacoco/69553b6d-5bb2-4ea9-8c0d-dff56ea1ff57n%40googlegroups.com.