Skip to content

Commit 5c3ee05

Browse files
committed
Adjust ApplicationRule.AllTests to support Android test fixtures in the future
1 parent dc5b8d1 commit 5c3ee05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mokkery-gradle/src/main/kotlin/dev/mokkery/gradle/ApplicationRule.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ public fun interface ApplicationRule {
3131
public companion object {
3232

3333
/**
34-
* Results in Mokkery being applied to any source set with name that contains "Test" or is equal to "test".
34+
* Results in Mokkery being applied to any source set with name that contains "Test" or starts with "test".
3535
* It means that it is automatically applied to tests in Multiplatform, JVM and Android projects.
3636
*/
37-
public val AllTests: ApplicationRule = ApplicationRule { it.name.contains("Test") || it.name == "test" }
37+
public val AllTests: ApplicationRule = ApplicationRule { it.name.contains("Test") || it.name.startsWith("test") }
3838

3939
/**
4040
* Results in Mokkery being applied to all source sets in this project.

0 commit comments

Comments
 (0)