Skip to content

Commit

Permalink
Tests fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hsz committed Jul 4, 2024
1 parent f9b5813 commit 60e47e8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ class InitializeChangelogTaskTest : BaseTest() {

@Test
fun `task loads from the configuration cache`() {
runTask(INITIALIZE_CHANGELOG_TASK_NAME)
runTask(INITIALIZE_CHANGELOG_TASK_NAME)
val result = runTask(INITIALIZE_CHANGELOG_TASK_NAME)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,12 @@ class PatchChangelogTaskTest : BaseTest() {
[world]: https://jetbrains.com
""".trimIndent(),
extension.render()
extension.render().also {
println("--------")
println(it)
println("--------")
}

)

assertMarkdown(
Expand Down Expand Up @@ -1307,7 +1312,7 @@ class PatchChangelogTaskTest : BaseTest() {

project.evaluate()
runTask(PATCH_CHANGELOG_TASK_NAME)
val result = runTask(PATCH_CHANGELOG_TASK_NAME)
runTask(PATCH_CHANGELOG_TASK_NAME)

assertMarkdown(
"""
Expand Down Expand Up @@ -1344,12 +1349,13 @@ class PatchChangelogTaskTest : BaseTest() {
""".trimIndent(),
extension.render()
)

val result = runTask(PATCH_CHANGELOG_TASK_NAME)
assertTrue(result.output.contains("Reusing configuration cache."))
}

@Test
fun `task loads from the configuration cache`() {
runTask(PATCH_CHANGELOG_TASK_NAME)
runTask(PATCH_CHANGELOG_TASK_NAME)
val result = runTask(PATCH_CHANGELOG_TASK_NAME)

Expand Down

0 comments on commit 60e47e8

Please sign in to comment.