Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Shpec -- rspec like testing for shell scripts (github.com/dhamidi)
3 points by tdgs on Dec 12, 2013 | hide | past | favorite | 2 comments



Example 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


Worths a look if you are writing shell scripts. Really nice!




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: