https://kotlinlang.org logo
#android
Title
# android
r

reactormonk

10/04/2023, 3:46 PM
How do I set
Copy code
android {
    testOptions {
        unitTests {
            includeAndroidResources = true
        }
    }
}
Using kotlin gradle DSL? I could only get it to run using the groovy one
f

Francesc

10/04/2023, 4:12 PM
you can do either of these
Copy code
android {                            
    testOptions.unitTests.isReturnDefaultValues = true

    testOptions {
        unitTests.isReturnDefaultValues = true
    }
}
r

reactormonk

10/04/2023, 4:12 PM
Ah, the
isReturnDefaultValues
, gotcha
f

Francesc

10/04/2023, 4:14 PM
actually, bad copy/paste on my part,
Copy code
testOptions.unitTests.isIncludeAndroidResources = true
        testOptions {
            unitTests.isIncludeAndroidResources = true
        }
8 Views