Embed Notice
HTML Code
Corresponding Notice
- Embed this notice
Haelwenn /элвэн/ :triskell: (lanodan@queer.hacktivis.me)'s status on Thursday, 31-Oct-2024 08:24:43 JST Haelwenn /элвэн/ :triskell:
@toiletpaper @p @NonPlayableClown Well the yaml part of tap could be replaced with JSON fine.
And TAP for me is great, simple enough format to ditch test frameworks, sensible choices like "not ok" being noticeably distinct, …
Like I use it in utils-std (provides basic unix utilities like cat, cp, …) because test frameworks are kind of awful and it's also neat to be able to bootstrap cleanly and run the testsuite right after building.
https://hacktivis.me/git/utils-std/file/test-lib/t_mode.c.html : C example
https://hacktivis.me/git/utils-std/file/test-cmd/seq.sh.html : self contained test for seq(1)
https://hacktivis.me/git/utils-std/file/test-cmd/tap.sh.html : ~200 lines shell library
https://hacktivis.me/git/utils-std/file/test-cmd/date.sh.html : date(1) test using my tap.sh
https://hacktivis.me/git/utils-std/file/check-funcs.sh.html : script to grep out '^ok' lines and isolate tests