Elektrine lite

← Feed

@paulshryock@phpc.social

Post #3966437

2026-07-20 18:24 UTC

Here's the whole CLI. It's only 18 lines of Bash. As of now, it automatically runs all *.test.sh files found in the ./tests/ directory, but in the future I'll probably add a way to specify one or more files or test suites.

Replies (1)

  • @paulshryock@phpc.social 2026-07-20 18:35

    Here's what it looks like to write tests. You can create any *.test.sh file inside ./tests/. Write a test like this: ```bash it "should _____" $(test _____) ``` And if you want, you can wrap one or more tests inside a describe block, nested as many layers deep as you like: ```bash describe "when ____" it "should _____" $(test _____) enddescribe ```

    Open ##3966708