PR#124 Fix issue with merging meta-info

This commit is contained in:
Gergely Hegedus 2022-09-26 20:21:01 +03:00
parent e6349363d7
commit 8a4a0c0f96
4 changed files with 18 additions and 1 deletions

View file

@ -35,6 +35,9 @@ android {
}
}
// since it itself contains the Test it doesn't have tests of it's own
disableTestTasks(this)
dependencies {
implementation project(":app")
implementation project(':test-util-android')

View file

@ -46,3 +46,4 @@ apply from: 'gradlescripts/lint.gradle'
apply from: 'gradlescripts/testoptions.gradle'
apply from: 'gradlescripts/test.tasks.gradle'
apply from: 'gradlescripts/testdependencies.gradle'
apply from: 'gradlescripts/disable.test.task.gradle'

View file

@ -34,6 +34,9 @@ android {
}
}
// since it itself contains the Test it doesn't have tests of it's own
disableTestTasks(this)
dependencies {
applyAppSharedTestDependenciesTo(this)
implementation project(":examplecase:example-navcontroller")

View file

@ -0,0 +1,10 @@
project.ext {
// helper function to disable Test Tasks in modules where there are no tests and so the Tests are not required.
disableTestTasks = { module ->
module.tasks.whenTaskAdded { task ->
if(task.name.contains("Test")) {
task.enabled = false
}
}
}
}