Skip to content

Commit

Permalink
Mark UT_InlineIntTest as ignored so it doesn't kill other tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
nedtwigg committed Dec 17, 2023
1 parent fc5cc07 commit 0899b40
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,18 @@ package com.diffplug.selfie.junit5

import io.kotest.matchers.shouldBe
import kotlin.test.Test
import org.junit.jupiter.api.AfterAll
import org.junit.jupiter.api.MethodOrderer
import org.junit.jupiter.api.Order
import org.junit.jupiter.api.TestMethodOrder
import org.junitpioneer.jupiter.DisableIfTestFails

/** Write-only test which asserts adding and removing snapshots results in same-class GC. */
@TestMethodOrder(MethodOrderer.OrderAnnotation::class)
@DisableIfTestFails
//@DisableIfTestFails don't disable if test fails because we *have* to run cleanup
class InlineIntTest : Harness("undertest-junit5") {
@Test @Order(1)
fun toBe_TODO() {
ut_mirror().lineWith("@Ignore").setContent("//@Ignore")
ut_mirror().lineWith("expectSelfie").setContent(" expectSelfie(1234).toBe_TODO()")
gradleReadSSFail()
}
Expand All @@ -42,5 +43,6 @@ class InlineIntTest : Harness("undertest-junit5") {
@Test @Order(3)
fun cleanup() {
ut_mirror().lineWith("expectSelfie").setContent(" expectSelfie(1234).toBe_TODO()")
ut_mirror().lineWith("//@Ignore").setContent("@Ignore")
}
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package undertest.junit5
// spotless:off
import com.diffplug.selfie.expectSelfie
import kotlin.test.Ignore
import kotlin.test.Test

// spotless:on

@Ignore
class UT_InlineIntTest {
@Test fun singleInt() {
expectSelfie(1234).toBe_TODO()
Expand Down

0 comments on commit 0899b40

Please sign in to comment.