Shpec -- rspec like testing for shell scripts
1–3 of 3 posts
Re: Shpec -- rspec like testing for shell scripts
#2Worths a look if you are writing shell scripts. Really nice!
Re: Shpec -- rspec like testing for shell scripts
#3Example test: https://github.com/dhamidi/shtuc/blob/master/t/shtuc-get-shp...
Here is an excerpt:
describe 'the requested file exists'
it 'outputs the contents of a non-executable'
expect "$(shtuc-get shtuc-find-test)" to = success
end
end