Just chiming in here without fully understanding the problem. I see mention in the linked post regarding JaCoCo and append=true
Is it possible to
- Have a separate JaCoCo exec file for each test task
- Set
append=false
for each - Use a JacocoMerge task to merge the multiple exec files into one
- Generate a JacocoReport from the merged exec file