Unable to run Single Test task for all modules

Gradle single task for running all unit test of moduels in jmix composite project

Create a task in the build.gradle of the all module:

tasks.register('test') {
    dependsOn gradle.includedBuild('users').task(':users:test')
    dependsOn gradle.includedBuild('customers').task(':customers:test')
    // ...
}