Skip to content

Commit

Permalink
Add selfie snapshot testing to the extensions listing (#3870)
Browse files Browse the repository at this point in the history
Selfie just released its `1.2.0` version which added support for Kotest.

- add
`testImplementation("com.diffplug.selfie:selfie-runner-junit5:1.2.0")`
- add `override fun extensions() = listOf(SelfieExtension(this))` to
your `AbstractProjectConfig`
- do snapshot testing! https://github.com/diffplug/selfie

It's written in KMP, but there are some stubs which have only been
implemented for JVM so far. If anyone is interested in helping with
other platforms:

- diffplug/selfie#186

Also perhaps of interest to Kotest folks:

- diffplug/selfie#214
  • Loading branch information
nedtwigg committed Feb 14, 2024
1 parent 7fee250 commit deb8d2a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions documentation/docs/extensions/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ maintained and hosted by third parties.
| [LogCapture](https://github.com/jsalinaspolo/logcapture) | LogCapture is a testing library for asserting logging messages |
| [Micronaut](https://github.com/micronaut-projects/micronaut-test) | JVM-based, full-stack framework for building modular, easily testable microservice |
| [Result4s](https://github.com/MrBergin/result4k-kotest-matchers) | Result4s matchers |
| [Selfie](https://www.github.com/diffplug/selfie) | Snapshot testing (inline, disk, and memoization) |
| [Sniffy](https://www.sniffy.io/docs/latest/#_integration_with_kotest) | Network connectivity testing |
| [TestFiles](https://github.com/jGleitz/testfiles) | Creates organized files and directories for testing |
| [FixtureMonkey](https://github.com/naver/fixture-monkey) | generate a complex type and customize it within Kotest |
Expand Down

0 comments on commit deb8d2a

Please sign in to comment.