Query: shunit2
OS: debian
Section: 1
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
SHUNIT2(1) SHUNIT2(1)NAMEshunit2 - A unit test framework for shell scriptsSYNOPSISshunit2 unitfileDESCRIPTIONshUnit2 is a xUnit unit test framework for Bourne based shell scripts, and it is designed to work in a similar manner to JUnit, PyUnit, etc.. If you have ever had the desire to write a unit test for a shell script, shUnit2 can do the job. You can either run shunit2 directly from the commandline and specify the unit file or directly source the shunit2 executable. If you directly execute shunit2 and don't specify a unitfile shunit2 assumes a empty testfile and will return without an error message.EXAMPLESimple script to test if 1 equals 1 #! /bin/sh testEquality() { assertEquals 1 1 } # load shunit2 . shunit2 Execute shUnit2 unit tests directly from the commandline shunit2 /path/to/unit/fileOPTIONSshunit2 does not support any commandline options at all. You can either source shunit2 to execute your unit tests or directly run shunit2 as a commandline script.SEE ALSOFor more information see http://code.google.com/p/shunit2/ or have a look at the installed documentation in /usr/share/doc/shunit2/AUTHORshunit2 was written by Kate Ward <kate.ward@forestent.com>. This manpage was written by Ulrich Dangel <mru@spamt.net>. 2.1.6 03/25/2012 SHUNIT2(1)
Related Man Pages |
---|
systemd-run(1) - centos |
npm-run-script(1) - linux |
npm-run-script(1) - netbsd |
dh_systemd_start(1) - minix |
test::unit::procedural(3pm) - debian |
Similar Topics in the Unix Linux Community |
---|
Retreive string between two chars |
Grepping for Exact Strings |
I can't get what I'm doing wrong! |
Help require for vLookup Utility same as in EXCEL |
Problem with LD_LIBRARY_PATH |