shunit2 icon indicating copy to clipboard operation
shunit2 copied to clipboard

shUnit2 is a xUnit based unit test framework for Bourne based shell scripts.

Results 49 shunit2 issues
Sort by recently updated
recently updated
newest added

Hi, I'm seeing this error pop up inside Docker images using shunit2 for unit tests: ``` tput: No value for $TERM and no -T specified /usr/local/bin/shunit2: line 840: [: :...

bug

Test `bash` in both POSIX and non-POSIX mode to insure the broadest compatibility. https://www.gnu.org/software/bash/manual/html_node/Bash-POSIX-Mode.html

enhancement

This is related to documentation. I'm guessing this is obvious to everyone who uses shunit2, but how do I setup shunit2 in a project for use? Do I clone it?...

documentation

Hi Kate, Just discovered your GIT repo. Great work! Until now I always tested shell scripts manually. Trying to write few tests with your unit test framework. Having a problem...

bug

When sourcing a file into a shunit2 test, Bash's `[[` is not recognized. Consider the file above, called `example.sh`: ```bash #!/usr/bin/env bash # example.sh if [[ "$1" == "OK" ]]...

bug

Changes: 1. The `*Skipping` functions have been renamed to `*SkippingAsserts` to highlight that they are related to skipping asserts. The old functions are available for backwards compatibility but they print...

The current `startSkipping`/`endSkipping` functionality is all about skipping asserts within the test cases. While that solution can be used for skipping test cases completely, the counter for the "skips" counts...

With return statement, running tests using `shunit2 ` will print out a warning message "can only `return' from a function or sourced script". This regression has been introduced after the...

``` Hello, I would like to submit you a bunch of changes: - adds a trick to prevent tested scripts to prematurely exit, - fixes a typo in docbookPrep.sh, -...

auto-migrated
Type-Enhancement
Priority-Low