News for hackers. Stuff that matters.
Re:Writing your Clojure tests in EDN files by lyxell on Monday July 21, 2025 @04:12PM (#44639905)
I like to use txtar files for snapshot testing. I let one of the file fields contain the expected output and one or more contain the input(s). Most mainstream languages already have txtar parsers so this approach makes it trivial to port an entire test suite across languages.

See https://docs.rs/txtar/latest/txtar/ for an example

There are no comments on this comment yet.