Skip to content

Commit 7861c1e

Browse files
Update JaCoCo coverage exclusions in build.gradle to include SyncResultCallBack and Stack callback interfaces, improving test coverage configuration and maintainability.
1 parent abdf0ce commit 7861c1e

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

contentstack/build.gradle

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,10 @@ tasks.register('jacocoTestReport', JacocoReport) {
276276
'**/txtmark/**',
277277
'**/retrofit2/**',
278278
'**/volley/**',
279-
'**/CSConnectionRequest.class'
279+
'**/CSConnectionRequest.class',
280+
// Exclude callback interfaces and their anonymous implementations
281+
'**/SyncResultCallBack.class',
282+
'**/Stack$*.class'
280283
]
281284

282285
sourceDirectories.setFrom(files([
@@ -336,7 +339,10 @@ tasks.register('jacocoCombinedReport', JacocoReport) {
336339
'**/txtmark/**',
337340
'**/retrofit2/**',
338341
'**/volley/**',
339-
'**/CSConnectionRequest.class'
342+
'**/CSConnectionRequest.class',
343+
// Exclude callback interfaces and their anonymous implementations
344+
'**/SyncResultCallBack.class',
345+
'**/Stack$*.class'
340346
]
341347

342348
sourceDirectories.setFrom(files([
@@ -370,7 +376,10 @@ tasks.register('jacocoTestCoverageVerification', JacocoCoverageVerification) {
370376
'android/**/*.*',
371377
'**/package-info.class',
372378
'**/TestActivity.class',
373-
'**/CSConnectionRequest.class'
379+
'**/CSConnectionRequest.class',
380+
// Exclude callback interfaces and their anonymous implementations
381+
'**/SyncResultCallBack.class',
382+
'**/Stack$*.class'
374383
]
375384

376385
sourceDirectories.setFrom(files([

0 commit comments

Comments
 (0)