Elektrine lite

← Feed

@paulshryock@phpc.social

Post #3961014

2026-07-20 13:50 UTC

I've got a few global variables like PASSED, FAILED, and TOTAL, which begin at 0 and increment each time a test passes or fails. At the moment individual test files are "source"d in order to run in the same process and share global state. In the future, I'm sure it will make more sense to run test files in separate processes and quit sharing global state, but I'll take it one small step at a time, and work incrementally.

Replies (1)

  • @paulshryock@phpc.social 2026-07-20 13:53

    I'm aware that some Bash testing frameworks already exist. I know about Bats, bashunit, Bach, and some others. "Best" will not try to be a direct competitor to those, and I certainly don't think mine is going to be the "best" Bash testing framework. It's just a silly name, influenced by Jest and Pest, putting the first letter "B" from "Bash" at the beginning of the name.

    Open ##3961082