pmarreck/tinytestlib
View on GitHub ↗ ★ 5 Shell
An MVP shell script testing library (currently bash but may include more shells in future) allowing you to assert on stdout, stderr and return codes in your shell script test suites.
7 mentions on Hacker News by 1 person: 0 stories, 7 comments · first 2022-01-04 · latest 2024-07-03
20082026
-
…but I at least want to commend you for having what looks like a great test suite to begin with! https://github.com/pmarreck/tinytestlib
comment by pmarreck · 2024-07-03 · in Show HN: Jb / json.bash – Command-line tool (and bash library) that creates JSON -
I wrote something like this but in Bash https://github.com/pmarreck/tinytestlib but since this accomplishes my own design goals of being able to assert on all 3 things at once (stdout, stderr, return/exit code), and since I have a thing…
comment by pmarreck · 2023-06-20 · in Fhtagn – A tiny CLI programs tester written in Awk -
…Yesterday I realized that a hard-ish problem in my tiny shell script testing library https://github.com/pmarreck/tinytestlib which I had worked on for over a day was completely moot, and ripped it out while facepalming. Incidentally, I'm…
comment by pmarreck · 2023-01-10 · in Ask HN: I'm 40 and feel my mental ability declining. Programming seems harder. -
…for it which still needs polishing so it is incredibly easy to include in another bash script https://github.com/pmarreck/tinytestlib , code a Discord bot to DJ my cross-country gaming sessions with a best friend (I have one working but I…
comment by pmarreck · 2023-01-02 · in Ask HN: How do you work on your mental health? -
…(and the return value) is IMHO fundamental to a proper suite. I figured one out for bash https://github.com/pmarreck/tinytestlib but not one for es yet. Sorry for hijacking your comment
comment by pmarreck · 2022-03-20 · in Fish 3.4.0 -
…with this for example (the test of my test library, which uses the library's own functions): https://github.com/pmarreck/tinytestlib/blob/yolo/test Call me crazy but I think `assert_equal "4" "$result"` is a lot more readable than `[…
comment by pmarreck · 2022-01-04 · in Show HN: A pure bash web server. No netcat, socat, etc. -
…I ALSO got frustrated with the bash-accessible testing libraries available to me, also in Bash: https://github.com/pmarreck/tinytestlib ) But then I immediately felt bad. I could have written all of this in less than an hour in a language…
comment by pmarreck · 2022-01-04 · in Show HN: A pure bash web server. No netcat, socat, etc.