Download Latest Version jshu-1.0.0-19.zip (18.6 kB)
Email in envelope

Get an email when there's a new version of jshu

Home
Name Modified Size InfoDownloads / Week
README 2019-03-12 3.4 kB
jshu-1.0.0-19.tgz 2019-03-12 11.5 kB
jshu-1.0.0-19.zip 2019-03-12 18.6 kB
jshu-1.0.0-18.tar.gz 2016-10-04 12.2 kB
jshu-1.0.0-18.zip 2016-10-04 18.6 kB
jshu-1.0.0-17.tgz 2016-08-31 12.2 kB
jshu-1.0.0-17.zip 2016-08-31 18.5 kB
jshu-1.0.0-16.tgz 2016-08-04 12.0 kB
jshu-1.0.0-16.zip 2016-08-04 18.4 kB
jshu-1.0.0-15.tar.gz 2016-08-02 11.1 kB
jshu-1.0.0-15.zip 2016-08-02 17.7 kB
jshu-1.0.0-14.zip 2016-01-20 18.2 kB
jshu-1.0.0-14.tar.gz 2016-01-20 11.1 kB
jshu-1.0.0-13.tar.gz 2016-01-19 10.5 kB
jshu-1.0.0-13.zip 2016-01-19 153.0 kB
jshu-1.0.0-12.tar.gz 2015-07-14 10.0 kB
jshu-1.0.0-12.zip 2015-07-14 14.7 kB
jshu-1.0.0-11.zip 2014-12-18 13.6 kB
jshu-1.0.0-11.tar.gz 2014-12-18 9.6 kB
jshu-1.0.0-9.zip 2014-04-02 14.6 kB
jshu-1.0.0-9.tar.gz 2014-04-02 9.9 kB
jshu-1.0.0-8.zip 2014-02-26 13.2 kB
jshu-1.0.0-8.tar.gz 2014-02-26 9.5 kB
jshu-1.0.0-7.tar.gz 2014-02-24 9.3 kB
jshu-1.0.0-7.zip 2014-02-24 13.0 kB
jshu-1.0.0-6.zip 2014-02-06 12.6 kB
jshu-1.0.0-6.tar.gz 2014-02-06 9.0 kB
jshu-1.0.0-5.tar.gz 2014-01-30 8.4 kB
jshu-1.0.0-5.zip 2014-01-30 12.2 kB
Totals: 29 Items   506.6 kB 0
# jshu
Simplified unit test framework for shell script which produces junit-style xml results file (for Jenkins/Hudson).


The jshu archives contain the jshutest.inc shell script "include" file itself
and a sample directory containing a shell script (increment_build.sh) to increment
build numbers in a text file and two different test scripts for it:

* incrbuild_unitTest.sh - This test script is written more along the lines
    of classic developer unit-style tests where tests run individual functions
    inside of increment_build.sh to determine if they are correct.

* incrbuild_funcTest.sh - This test script is written more like a functional
    or integration test - where the internal components are presumed to already
    have been tested elsewhere and we now wish to test the operation of the script
    as a whole. Thus, this script provides increment_build.sh with data, runs it,
    and evaluates the resultant data after execution is done.

Version 1.0.0-19
* Removed testcase property (assertions) that Jenkins no longer supports.
* Limited elapsed time to 3 decimals because the Jenkins time validation is now faulty.

Version 1.0.0-18
* Fixed up function ordering errors and a dangling quote.

Version 1.0.0-17
* Patches submitted by ireicht to fix issues with file paths that have embedded spaces and to fix a segfault in the sample/incrbuild_unitTest.sh
* Modification to the patched sample/incrbuild_unitTest.sh to change the name ofa "dynamic" test function so that it will not also be a "discovered" test function (so the test will not run twice).

Version 1.0.0-16
* Check to make sure that any test function names that were provided (as opposed
  to discovered) actually exist in the test script.
  
Version 1.0.0-15
* Add the ability to specify test function names in a variable (jshuTestFunctions)
  that will be run before the discovered functions (those whose names end with Test).
  See the test/addhocFunctionNamesTest.sh script or the sample/incrbuild_unitTest.sh
  script for an example of use.
  
Version 1.0.0-14
* Add two possible return values for a test - ${jshuFAILABORT} and
  ${jshuERRORABORT}. These allow you to mark failures and errors in a test
  that are so severe that the rest of the tests in the test suite should not
  be run.
Version 1.0.0-13
* Modify calling of jshuSetup and jshuTeardown functions so that if they fail 
  for some reason, the failure will be caught and reported.
  
Version 1.0.0-12
* Prevent test result writing from erroring out when you call a test script
  from a test script - as long as you are in a bash shell - because only the bash
  shell provides a means of getting a subshell pid.

Version 1.0.0-11
* Bring back build 9 and then protect against missing capture file.

Version 1.0.0-10
* bad release - reverts back to 1.0.0-5

Version 1.0.0-9
* Filter binary (unprintable) characters out of the CDATA stdout capture to
  prevent malformed XML.
  
Version 1.0.0-8
* Fix problem of malformed xml when a jshu_errmsg string has an embedded quote mark. 
  Convert it to html entity " .

Version 1.0.0-7
* Add support for skipped test messages now that I know Jenkins can display them.
  Simply assign your skip message to jshu_errmsg before the ${jshuTEST_SKIP}.

Version 1.0.0-6
* Change directory back to where the test script was started from before executing
  each test function.
* Miscellaneous code cleanup and commenting.


Source: README, updated 2019-03-12