Test Anything Protocol in Shell scripts

Tanktalus picture Tanktalus · Apr 13, 2009 · Viewed 9.8k times · Source

Has anyone seen, tried to implement, or otherwise played with TAP in shell? We're looking to create unit tests across many languages (don't get me started on why this doesn't exist so far), and since we have so much Perl code, we'll be looking at TAP (among others, I imagine). I've found a TAP library for C, Perl, of course, has it built-in, and I've even found an API for Java. But one area missing is shell script testing.

Not that I've found much on unit-testing shell scripts, either, but since we do have thousands of lines of shell code, it'd be nice to be able to test it somehow.

Answer

Chas. Owens picture Chas. Owens · Apr 14, 2009

See the list of TAP Producers for a list of libraries. On that list you will find Tap-functions for shell code.