We published a new SRFI 269: Portable Test Definitions.

https://srfi.schemers.org/srfi-269/

We already got a very positive feedback from seasoned Scheme hackers, but we also looking forward to yours. We have a few more weeks to incorporate the changes.

P.S. 21 years have passed since SRFI-64.
P.P.S. There are links to demo video of the library usage at the end of the SRFI.

BTW, this huge work is possible thanks to @nlnet and funding they provide!

#srfi #guile #scheme #lisp #testing

Portable Test Definitions

@abcdw @avp @nlnet I’m not a schemer, but I tried Guile for couple of little things and was a bit frustrated by exactly this. I’m very glad to hear you’re improving the composability of tests. 😄

@abcdw Nice!

Reading the spec, I'm not clear how one could use `is` to test non-local control flow (e.g. that a condition was raised).

@nlnet

@krans Thank you!

One of the options is to use a throw-exception? predicate:
https://git.sr.ht/~abcdw/guile-ares-rs/tree/effbfe0/tests/guile/ares/suitbl-test.scm#L287
https://git.sr.ht/~abcdw/guile-ares-rs/tree/effbfe0/tests/guile/ares/suitbl-test.scm#L223

In this case it's implemented as macro:
https://git.sr.ht/~abcdw/guile-ares-rs/tree/effbfe0/src/guile/ares/suitbl.scm#L97

I guess it will be useful to standardize such helpers in another SRFI, related to test runners and test reporters.

@abcdw @nlnet @krans Oooh, I’ll have to take a look at that