diff options
author | sebastian.sellmair <sebastian.sellmair@jetbrains.com> | 2020-07-03 16:58:14 +0200 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-07-06 15:34:57 +0200 |
commit | 163a7c484125a78cfe618f5ff363d36ad4cc3e5f (patch) | |
tree | 8004e7949623f54c70c92c8dcbbc031353fb4b47 /integration-tests/gradle/src/integrationTest/kotlin/org/jetbrains/dokka | |
parent | a573641a70a626983c1d63965e377ea0be274f41 (diff) | |
download | dokka-163a7c484125a78cfe618f5ff363d36ad4cc3e5f.tar.gz dokka-163a7c484125a78cfe618f5ff363d36ad4cc3e5f.tar.bz2 dokka-163a7c484125a78cfe618f5ff363d36ad4cc3e5f.zip |
Android0GradleIntegrationTest.kt: Assert link to developer.android.com
Diffstat (limited to 'integration-tests/gradle/src/integrationTest/kotlin/org/jetbrains/dokka')
-rw-r--r-- | integration-tests/gradle/src/integrationTest/kotlin/org/jetbrains/dokka/it/gradle/Android0GradleIntegrationTest.kt | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/integration-tests/gradle/src/integrationTest/kotlin/org/jetbrains/dokka/it/gradle/Android0GradleIntegrationTest.kt b/integration-tests/gradle/src/integrationTest/kotlin/org/jetbrains/dokka/it/gradle/Android0GradleIntegrationTest.kt index 93d84e1f..e08dbca5 100644 --- a/integration-tests/gradle/src/integrationTest/kotlin/org/jetbrains/dokka/it/gradle/Android0GradleIntegrationTest.kt +++ b/integration-tests/gradle/src/integrationTest/kotlin/org/jetbrains/dokka/it/gradle/Android0GradleIntegrationTest.kt @@ -4,10 +4,7 @@ import org.gradle.testkit.runner.TaskOutcome import org.junit.Assume import org.junit.runners.Parameterized.Parameters import java.io.File -import kotlin.test.BeforeTest -import kotlin.test.Test -import kotlin.test.assertEquals -import kotlin.test.assertNotNull +import kotlin.test.* class Android0GradleIntegrationTest(override val versions: BuildVersions) : AbstractGradleIntegrationTest() { @@ -19,7 +16,7 @@ class Android0GradleIntegrationTest(override val versions: BuildVersions) : Abst kotlinVersions = listOf("1.3.72", "1.4-M2-eap-70"), androidGradlePluginVersions = listOf("3.5.3", "3.6.3") ) + BuildVersions.permutations( - gradleVersions = listOf("6.5.1","6.1.1"), + gradleVersions = listOf("6.5.1", "6.1.1"), kotlinVersions = listOf("1.3.72", "1.4-M2-eap-70"), androidGradlePluginVersions = listOf("4.0.0") ) + BuildVersions.permutations( @@ -64,6 +61,16 @@ class Android0GradleIntegrationTest(override val versions: BuildVersions) : Abst fun execute() { val result = createGradleRunner("dokka", "--stacktrace").build() assertEquals(TaskOutcome.SUCCESS, assertNotNull(result.task(":dokka")).outcome) - } + projectDir.allHtmlFiles().forEach { file -> + assertContainsNoErrorClass(file) + assertNoUnresolvedLInks(file) + } + + assertTrue( + projectDir.allHtmlFiles().any { file -> + "https://developer.android.com/reference/android/content/Context.html" in file.readText() + }, "Expected link to developer.android.com" + ) + } } |