tinytestlib

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. (by pmarreck)

Tinytestlib Alternatives

Similar projects and alternatives to tinytestlib

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better tinytestlib alternative or higher similarity.

tinytestlib reviews and mentions

Posts with mentions or reviews of tinytestlib. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-06-19.
  • Fhtagn – a tiny CLI programs tester written in Awk
    3 projects | news.ycombinator.com | 19 Jun 2023
    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 for Awk, and since you can also embed this in a Markdown, I kind of like this better
  • No redirect to variable?
    1 project | /r/bash | 2 May 2023
    I actually used a variation on that stackoverflow answer to implement a simple as possible bash testing library where you can assert on stdout, stderr and returncodes (which all had to be gathered from 1 command invocation)
  • I wrote an MVP testing library in Bash to make it as easy as possible to add test suites for commandline-driven tools
    2 projects | /r/bash | 10 Jan 2023
  • Ask HN: How do you work on your mental health?
    2 projects | news.ycombinator.com | 2 Jan 2023
    I've been trying to learn Nix, NixOS (incl. writing my own derivations), play with Phoenix's LiveView (which has already been out for a while), play with Elixir's Nx library for machine learning stuff, play with https://livebook.dev/ which now has ML hooks, come up with a use case for GraphQL so I can at least stick it on a resume (I understand it in principle but not in practice), make Bash saner by writing my own testing library 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 need to hack on it more), learn more about ZFS and tuning it (I boot off it), stay on top of Linux developments, stay on top of Postgresql developments (perhaps investigating immutable-data/event-log schemes that play nice with it to maybe work with a security audit requirement in an app I'm responsible for)...

    AND THAT'S JUST OFF THE TOP OF MY HEAD. ;)

  • Fish 3.4.0
    16 projects | news.ycombinator.com | 19 Mar 2022
    I made the mistake last year of falling in love with xs-shell, talking to its maintainer (who recently put xs out to pasture, as it were) who is now moving all his stuff to es-shell, switching my romance to es-shell, merging in 2 forks of it to my own version https://github.com/pmarreck/es-shell/ aaaand having a kid and basically running out of time.

    This shell makes a ton more sense to my brain than the usual bash/zsh/fish rigmarole, it just needs some love.

    The last thing I was working on was a way to capture all of stdout, stderr and return code from a single run of a command, for testing purposes, because the OTHER thing es-shell desperately needs is a proper test suite. I figured one out for bash https://github.com/pmarreck/tinytestlib but not one for es yet.

  • A note from our sponsor - InfluxDB
    www.influxdata.com | 2 May 2024
    Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality. Learn more →

Stats

Basic tinytestlib repo stats
5
3
0.0
about 1 year ago

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com