Skip to content

Commit

Permalink
fixed testing
Browse files Browse the repository at this point in the history
  • Loading branch information
liplum committed Dec 11, 2023
1 parent 102fd08 commit bf5c262
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 12 deletions.
10 changes: 5 additions & 5 deletions processor/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ dependencies {
implementation(project(":annotations"))
importMindustry()
implementation("com.google.guava:guava:31.1-jre")
implementation("com.google.devtools.ksp:symbol-processing-api:1.7.20-1.0.6")
testImplementation("com.github.tschuchortdev:kotlin-compile-testing:1.4.9")
testImplementation("com.github.tschuchortdev:kotlin-compile-testing-ksp:1.4.9")
implementation("com.google.devtools.ksp:symbol-processing-api:1.9.21-1.0.15")
testImplementation("com.github.tschuchortdev:kotlin-compile-testing:1.5.0")
testImplementation("com.github.tschuchortdev:kotlin-compile-testing-ksp:1.5.0")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.9.0")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.9.0")
implementation("org.jetbrains.kotlin:kotlin-reflect:1.6.21")
testImplementation("org.jetbrains.kotlin:kotlin-reflect:1.6.21")
implementation("org.jetbrains.kotlin:kotlin-reflect:1.9.21")
testImplementation("org.jetbrains.kotlin:kotlin-reflect:1.9.21")
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.liplum.source
package net.liplum

import com.tschuchort.compiletesting.SourceFile

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.liplum.source
package net.liplum

import com.tschuchort.compiletesting.SourceFile

Expand Down
2 changes: 2 additions & 0 deletions processor/test/TestDpResolution.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
package net.liplum

import net.liplum.processor.dp.DpGraph
import org.junit.jupiter.api.Test

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,8 @@ import com.tschuchort.compiletesting.KotlinCompilation.ExitCode.OK
import com.tschuchort.compiletesting.kspArgs
import com.tschuchort.compiletesting.kspSourcesDir
import com.tschuchort.compiletesting.symbolProcessorProviders
import net.liplum.processor.cacherw.CacheRwProcessor
import net.liplum.processor.cacherw.CacheRwProcessorProv
import net.liplum.processor.dp.DpProcessorProv
import net.liplum.source.Blocks
import net.liplum.source.Items
import net.liplum.source.Liquids
import net.liplum.source.TestFunctionBody
import org.junit.jupiter.api.Test

class TestProcess {
Expand Down Expand Up @@ -49,5 +44,6 @@ class TestProcess {
messageOutputStream = System.out
}
val result = compilation.compile()
assert(result.exitCode == OK)
}
}

0 comments on commit bf5c262

Please sign in to comment.