Skip to content

Commit e2f8ecf

Browse files
committed
tests
1 parent 954e978 commit e2f8ecf

File tree

409 files changed

+451
-338
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

409 files changed

+451
-338
lines changed

docs/formats.md

Lines changed: 0 additions & 1 deletion

docs/serialization-guide.md

Lines changed: 2 additions & 1 deletion
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
/*
2+
* Copyright 2017-2022 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3+
*/
4+
import Java9Modularity.configureJava9ModuleInfo
5+
6+
plugins {
7+
kotlin("multiplatform")
8+
kotlin("plugin.serialization")
9+
}
10+
//
11+
apply(from = rootProject.file("gradle/native-targets.gradle"))
12+
apply(from = rootProject.file("gradle/configure-source-sets.gradle"))
13+
14+
// disable kover tasks because there are no non-test classes in the project
15+
tasks.koverHtmlReport {
16+
enabled = false
17+
}
18+
tasks.koverXmlReport {
19+
enabled = false
20+
}
21+
tasks.koverVerify {
22+
enabled = false
23+
}
24+
25+
kotlin {
26+
sourceSets {
27+
val commonTest by getting {
28+
dependencies {
29+
api(project(":kotlinx-serialization-json"))
30+
api(project(":kotlinx-serialization-json-okio"))
31+
implementation("com.squareup.okio:okio:3.1.0")
32+
}
33+
}
34+
35+
val jvmTest by getting {
36+
dependencies {
37+
implementation("com.google.code.gson:gson:2.8.5")
38+
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:${property("coroutines_version")}")
39+
}
40+
}
41+
}
42+
}
43+
44+
tasks.withType<SourceTask> {
45+
if (this.name == "compileTestKotlinJsLegacy") {
46+
this.exclude("**/PropertyInitializerTest.kt")
47+
}
48+
}
49+
50+
project.configureJava9ModuleInfo()

formats/json/commonTest/src/kotlinx/serialization/ClassWithMultipleMasksTest.kt renamed to formats/json-tests/commonTest/src/kotlinx/serialization/ClassWithMultipleMasksTest.kt

File renamed without changes.

formats/json/commonTest/src/kotlinx/serialization/EncodingCollectionsTest.kt renamed to formats/json-tests/commonTest/src/kotlinx/serialization/EncodingCollectionsTest.kt

File renamed without changes.

formats/json/commonTest/src/kotlinx/serialization/EncodingExtensionsTest.kt renamed to formats/json-tests/commonTest/src/kotlinx/serialization/EncodingExtensionsTest.kt

File renamed without changes.

formats/json/commonTest/src/kotlinx/serialization/EnumSerializationTest.kt renamed to formats/json-tests/commonTest/src/kotlinx/serialization/EnumSerializationTest.kt

File renamed without changes.

formats/json/commonTest/src/kotlinx/serialization/GenericSerializersOnFileTest.kt renamed to formats/json-tests/commonTest/src/kotlinx/serialization/GenericSerializersOnFileTest.kt

File renamed without changes.

formats/json/commonTest/src/kotlinx/serialization/JsonOverwriteKeyTest.kt renamed to formats/json-tests/commonTest/src/kotlinx/serialization/JsonOverwriteKeyTest.kt

File renamed without changes.

formats/json/commonTest/src/kotlinx/serialization/JsonPathTest.kt renamed to formats/json-tests/commonTest/src/kotlinx/serialization/JsonPathTest.kt

File renamed without changes.

0 commit comments

Comments
 (0)