testRunFinished not run solution?


I read in 2 other topics that gradle doesn’t execute the testRunFinished method with JUnit.
Is there a solution or work around for this?

Because I used it to write my test results into a test management system. I do it in the testRunFinished method because otherwise there will be to many connections to the test management system and the time to execute all my tests will be bigger.