-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added DataFrameTest, updating java version to 11, gradle to 8.5, fixi…
…ng test
- Loading branch information
1 parent
3c46eaf
commit cb99d93
Showing
6 changed files
with
51 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
...ssor-gradle-plugin/src/functionalTest/kotlin/nl/jolanrensen/docProcessor/DataFrameTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package nl.jolanrensen.docProcessor | ||
|
||
import org.gradle.testkit.runner.GradleRunner | ||
import org.junit.Ignore | ||
import org.junit.Test | ||
import java.io.File | ||
import kotlin.io.path.Path | ||
import kotlin.io.path.exists | ||
|
||
class DataFrameTest : DocProcessorFunctionalTest("df") { | ||
|
||
private val projectDirectory = File("src/functionalTest/resources/dataframe") | ||
private val outputDirectory = File(projectDirectory, "core/build/generated-sources") | ||
|
||
init { | ||
require(projectDirectory.exists()) { | ||
"The DataFrame directory does not exist. Please git clone the repository in the resources folder." | ||
} | ||
updateVersionInFiles() | ||
} | ||
|
||
private fun updateVersionInFiles() { | ||
val tomlFile = projectDirectory.resolve("gradle/libs.versions.toml") | ||
var txt = tomlFile.readText() | ||
txt = txt.replace("docProcessor = \"[^\"]+\"".toRegex(), "docProcessor = \"$version\"") | ||
tomlFile.write(txt) | ||
} | ||
|
||
@Test | ||
// @Ignore | ||
fun `build DataFrame`() { | ||
GradleRunner.create() | ||
.forwardOutput() | ||
.withArguments("clean", "core:processKDocsMain") | ||
.withProjectDir(projectDirectory) | ||
.withDebug(true) | ||
.build() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |