Skip to content

Commit

Permalink
Enable tests and update the version of Analysis API.
Browse files Browse the repository at this point in the history
The tests, that have unresolved common symbols, are fixed by the new version of Analysis API.
  • Loading branch information
vmishenev committed Oct 19, 2023
1 parent ac5e13a commit 4801b39
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 14 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ kotlinx-bcv = "0.13.2"

## Analysis
kotlin-compiler = "1.9.10"
kotlin-compiler-k2 = "1.9.30-dev-3330"
kotlin-compiler-k2 = "2.0.0-dev-5387"

# MUST match the version of the intellij platform used in the kotlin compiler,
# otherwise this will lead to different versions of psi API and implementations
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,6 @@ class SinceKotlinTest : AbstractRenderingTest() {
}

@Test
@OnlyDescriptorsMPP("SinceKotlin is unresolved in platform source sets")
fun `mpp fun with SinceKotlin annotation`() {
val configuration = dokkaConfiguration {
sourceSets {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,6 @@ class ContentForExceptions : BaseAbstractTest() {
}
}

@OnlyDescriptorsMPP("Return type for native `function` should be null rather than kotlin/Unit")
@Test
fun `throws in merged functions`() {
testInline(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,6 @@ class ContentForSeeAlsoTest : BaseAbstractTest() {
}
}

@OnlyDescriptorsMPP
@Test
fun `multiplatform class with seealso in few platforms`() {
testInline(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,11 @@ import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertNotEquals
import kotlin.test.assertNotNull
import utils.OnlyDescriptors
import utils.OnlyDescriptorsMPP

class LinkableContentTest : BaseAbstractTest() {

@OnlyDescriptorsMPP
@OnlyDescriptorsMPP("#3238")
@Test
fun `Include module and package documentation`() {

Expand Down Expand Up @@ -151,7 +150,7 @@ class LinkableContentTest : BaseAbstractTest() {
}
}

@OnlyDescriptorsMPP
@OnlyDescriptorsMPP("#3238")
@Test
fun `Samples multiplatform documentation`() {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@ package signatures
import utils.TestOutputWriterPlugin
import kotlin.test.Test
import kotlin.test.assertEquals
import utils.OnlyDescriptors
import utils.OnlyDescriptorsMPP

@OnlyDescriptorsMPP

class DivergentSignatureTest : AbstractRenderingTest() {

@Test
Expand Down
1 change: 0 additions & 1 deletion plugins/base/src/test/kotlin/signatures/SignatureTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,6 @@ class SignatureTest : BaseAbstractTest() {
}
}

@OnlyDescriptorsMPP
@Test
fun `type with an actual typealias`() {
val writerPlugin = TestOutputWriterPlugin()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import kotlin.test.assertEquals

class ModuleAndPackageDocumentationTransformerFunctionalTest : BaseAbstractTest() {

@OnlyDescriptorsMPP
@OnlyDescriptorsMPP("#3238")
@Test
fun `multiplatform project`(@TempDir tempDir: Path) {
val include = tempDir.resolve("include.md").toFile()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import org.jetbrains.dokka.SourceLinkDefinitionImpl
import org.jetbrains.dokka.base.testApi.testRunner.BaseAbstractTest
import org.jsoup.nodes.Element
import signatures.renderedContent
import utils.OnlyDescriptorsMPP
import utils.TestOutputWriterPlugin
import java.net.URL
import kotlin.test.Test
Expand Down Expand Up @@ -71,7 +70,6 @@ class SourceLinkTransformerTest : BaseAbstractTest() {
}
}

@OnlyDescriptorsMPP
@Test
fun `source link should be for actual typealias`() {
val mppConfiguration = dokkaConfiguration {
Expand Down

0 comments on commit 4801b39

Please sign in to comment.