File tree Expand file tree Collapse file tree 7 files changed +47
-5
lines changed
kotlin/org/jetbrains/kotlinx/dataframe/jupyter Expand file tree Collapse file tree 7 files changed +47
-5
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ dependencies {
49
49
}
50
50
51
51
tasks.withType<KotlinCompile >().configureEach {
52
- (this as BaseKotlinCompile ).friendPaths.from(projects.core.path)
52
+ (this as BaseKotlinCompile ).friendPaths.from(project( projects.core.path).projectDir )
53
53
}
54
54
55
55
kotlinPublications {
Original file line number Diff line number Diff line change @@ -37,13 +37,17 @@ kotlin {
37
37
}
38
38
39
39
tasks.withType<KotlinCompile > {
40
- (this as BaseKotlinCompile ).friendPaths.from(projects.core.path)
40
+ (this as BaseKotlinCompile ).friendPaths.from(project( projects.core.path).projectDir )
41
41
}
42
42
43
43
tasks.processJupyterApiResources {
44
44
libraryProducers = listOf (" org.jetbrains.kotlinx.dataframe.jupyter.Integration" )
45
45
}
46
46
47
+ tasks.test {
48
+ maxHeapSize = " 2048m"
49
+ }
50
+
47
51
kotlinPublications {
48
52
publication {
49
53
publicationName.set(" dataframe-jupyter" )
Original file line number Diff line number Diff line change @@ -6,7 +6,9 @@ import org.jetbrains.kotlinx.jupyter.testkit.ReplProvider
6
6
7
7
abstract class DataFrameJupyterTest :
8
8
JupyterReplTestCase (
9
- ReplProvider .forLibrariesTesting(listOf (" dataframe-jupyter" )),
9
+ ReplProvider .forLibrariesTesting(
10
+ setOf (" dataframe" , " dataframe-jupyter" ),
11
+ ),
10
12
)
11
13
12
14
fun interface CodeReplacer {
Original file line number Diff line number Diff line change @@ -3,12 +3,27 @@ package org.jetbrains.kotlinx.dataframe.jupyter
3
3
import org.jetbrains.jupyter.parser.JupyterParser
4
4
import org.jetbrains.jupyter.parser.notebook.CodeCell
5
5
import org.jetbrains.jupyter.parser.notebook.Output
6
+ import org.jetbrains.kotlinx.dataframe.BuildConfig
7
+ import org.junit.Assume
8
+ import org.junit.Before
6
9
import org.junit.Test
7
10
import java.io.File
8
11
import java.util.Locale
9
12
13
+ /* *
14
+ * Runs the example notebooks in the dev folder (`/examples/notebooks/dev`), only when
15
+ * debug mode is on:
16
+ * `kotlin.dataframe.debug=true`
17
+ */
10
18
class SampleNotebooksTests : DataFrameJupyterTest () {
11
19
20
+ /* *
21
+ * Skips the test if debug mode is off.
22
+ */
23
+ @Suppress(" KotlinConstantConditions" )
24
+ @Before
25
+ fun checkDebugMode () = Assume .assumeTrue(BuildConfig .DEBUG )
26
+
12
27
@Test
13
28
fun puzzles () = exampleTest(" puzzles" , " 40 puzzles" )
14
29
Original file line number Diff line number Diff line change
1
+ <configuration >
2
+ <appender name =" STDERR" class =" ch.qos.logback.core.ConsoleAppender" >
3
+ <!-- encoders are assigned the type
4
+ ch.qos.logback.classic.encoder.PatternLayoutEncoder by default -->
5
+ <target >System.err</target >
6
+ <encoder >
7
+ <pattern >%-4relative [%thread] %-5level %logger{35} - %msg %n</pattern >
8
+ </encoder >
9
+ </appender >
10
+
11
+ <root level =" DEBUG" >
12
+ <appender-ref ref =" STDERR" />
13
+ </root >
14
+
15
+ <logger name =" org.apache" level =" ERROR" />
16
+ <logger name =" org.jetbrains.kotlin.org.apache" level =" ERROR" />
17
+ <logger name =" httpclient" level =" ERROR" />
18
+ <logger name =" org.jetbrains.kotlin.httpclient" level =" ERROR" />
19
+ <logger name =" org.eclipse.aether" level =" DEBUG" />
20
+ <logger name =" org.jetbrains.kotlin.org.eclipse.aether" level =" DEBUG" />
21
+ </configuration >
Original file line number Diff line number Diff line change @@ -13,6 +13,6 @@ org.gradle.jvmargs=-Xmx4G
13
13
kotlin.dataframe.add.ksp =false
14
14
15
15
# Enables debug mode for dataframe.
16
- # This can make certain tests run that should not be run in production.
16
+ # This can make certain tests and checks run that should not be run in production.
17
17
# It can also be turned on from the command line with `-Pkotlin.dataframe.debug=true`
18
18
kotlin.dataframe.debug =false
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ tasks.test {
74
74
}
75
75
76
76
tasks.withType< org.jetbrains.kotlin.gradle.tasks.KotlinCompile > ().configureEach {
77
- (this as BaseKotlinCompile ).friendPaths.from(projects.core.path)
77
+ (this as BaseKotlinCompile ).friendPaths.from(project( projects.core.path).projectDir )
78
78
compilerOptions {
79
79
freeCompilerArgs.addAll(
80
80
" -Xcontext-receivers" ,
You can’t perform that action at this time.
0 commit comments