Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
ts is a shell testing library that might serve the needs of shellfire, at least for testing leaf functions. This adds a couple examples and a basic test harness.
Notes
ts
and naturally I like it but no worries if this is not your style. Seriously I will not be offended.ts
provides. You get a function toassert_status
and another one toassert_output
, you get a$ts_test_dir
variable that you can make into a dir and to store test-specific files, you get asetup
and ateardown
function. Not much else. Each test is run in a subshell to prevent carryover. You have to orchestrate the rest to your liking.ts
, clone the repo and add thebin
dir to PATH. You might just want to vendor it, it's just one file.