Skip to content

Commit

Permalink
manual (disabled) test for Kotest showing IntelliJ diff window
Browse files Browse the repository at this point in the history
  • Loading branch information
dkandalov committed Nov 10, 2023
1 parent e4b9c3c commit ff4177c
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import dev.forkhandles.result4k.Failure
import dev.forkhandles.result4k.Success
import io.kotest.matchers.shouldBe
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Disabled
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.assertDoesNotThrow
import org.junit.jupiter.api.assertThrows
Expand Down Expand Up @@ -77,6 +78,12 @@ class MatchersTest {
}
}

@Test
@Disabled // Comment out to check it manually
fun `check IntelliJ is showing diff window`() {
Success("Actual value").shouldBeSuccess("Expected value")
}

private fun throwsAssertionError(message: String, block: () -> Unit) =
assertThrows<AssertionError> { block() }.also {
assertThat(it.message, present(equalTo(message)))
Expand Down

0 comments on commit ff4177c

Please sign in to comment.