Fix tests
This commit is contained in:
parent
47dd47aa7e
commit
b231a56c9a
2 changed files with 4 additions and 3 deletions
|
@ -137,11 +137,12 @@ android.productFlavors.each { flavor ->
|
|||
}
|
||||
|
||||
jacoco {
|
||||
toolVersion = '0.8.0'
|
||||
toolVersion = '0.8.8'
|
||||
}
|
||||
|
||||
tasks.withType(Test) {
|
||||
jacoco.includeNoLocationClasses = true
|
||||
jacoco.excludes = ['jdk.internal.*']
|
||||
}
|
||||
|
||||
task jacocoTestReport(type: JacocoReport, dependsOn: ['testDebugUnitTest']) {
|
||||
|
|
|
@ -116,7 +116,7 @@ class MarkdownTests {
|
|||
val markdownText = "# UI Testing\n\nThe quick brown fox jumped over the lazy dog."
|
||||
onView(withId(R.id.markdown_edit)).perform(typeText(markdownText))
|
||||
val activityResult = Instrumentation.ActivityResult(RESULT_OK, Intent().apply {
|
||||
data = FileProvider.getUriForFile(getApplicationContext(), "com.wbrawner.simplemarkdown.fileprovider", file)
|
||||
data = FileProvider.getUriForFile(getApplicationContext(), "${BuildConfig.APPLICATION_ID}.fileprovider", file)
|
||||
})
|
||||
intending(hasAction(Intent.ACTION_CREATE_DOCUMENT)).respondWith(activityResult)
|
||||
openActionBarOverflowOrOptionsMenu(getApplicationContext())
|
||||
|
@ -146,7 +146,7 @@ class MarkdownTests {
|
|||
val markdownText = "# UI Testing\n\nThe quick brown fox jumped over the lazy dog."
|
||||
file.outputStream().writer().use { it.write(markdownText) }
|
||||
val activityResult = Instrumentation.ActivityResult(RESULT_OK, Intent().apply {
|
||||
data = FileProvider.getUriForFile(getApplicationContext(), "com.wbrawner.simplemarkdown.fileprovider", file)
|
||||
data = FileProvider.getUriForFile(getApplicationContext(), "${BuildConfig.APPLICATION_ID}.fileprovider", file)
|
||||
})
|
||||
intending(hasAction(Intent.ACTION_OPEN_DOCUMENT)).respondWith(activityResult)
|
||||
openActionBarOverflowOrOptionsMenu(getApplicationContext())
|
||||
|
|
Loading…
Reference in a new issue