diffplug / selfie

Snapshot testing for Java, Kotlin, and the JVM
https://selfie.dev
Apache License 2.0
55 stars 8 forks source link

pytest-selfie initial acceptance tests #296

Closed nedtwigg closed 7 months ago

nedtwigg commented 9 months ago

Basic acceptance tests

fun comment_removal(): #selfieonce
  expectSelfie("nothing happens")
  pass

fun inline():
  expectSelfie("A").toBe_TODO()

fun disk():
  expectSelfie("A").toMatchDisk_TODO()

https://github.com/diffplug/selfie-python-wip/blob/f8f51a4d2b1ac22a6df3f61353454b48b38e1c06/jvm/selfie-runner-junit5/src/main/kotlin/com/diffplug/selfie/junit5/SelfieTestExecutionListener.kt#L26-L88

https://github.com/diffplug/selfie-python-wip/blob/f8f51a4d2b1ac22a6df3f61353454b48b38e1c06/jvm/selfie-runner-junit5/src/main/kotlin/com/diffplug/selfie/junit5/SnapshotSystemJUnit5.kt#L61-L306

nedtwigg commented 8 months ago