Bash Automated Testing System

Edit Package bats
https://github.com/sstephenson/bats#readme

Bats is a TAP-compliant (http://testanything.org/) testing framework for Bash. It provides a simple way to verify that the UNIX programs you write behave as expected.

A Bats test file is a Bash script with special syntax for defining test cases. Under the hood, each test case is just a function with a description.

Bats is most useful when testing software written in Bash, but you can use it to test any UNIX program.

Refresh
Refresh
Source Files
Filename Size Changed
bats-core-1.5.0.tar.gz 0000108052 106 KB
bats.changes 0000007244 7.07 KB
bats.spec 0000002203 2.15 KB
Revision 11 (latest revision is 18)
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 939931 from Olav Reinert's avatar Olav Reinert (oreinert) (revision 11)
- boo#1193177: Fix build on Leap and SLE
- update to 1.5.0:
  * new command line flags
    * `--verbose-run`: Make `run` print `$output` by default
    * `-x`, `--trace`: Print test commands as they are executed (like `set -x`)`
    * `--show-output-of-passing-tests`: Print output of passing tests
    * `--print-output-on-failure`: Automatically print the value of  `$output` on
      failed tests
    * `--gather-test-outputs-in <directory>`: Gather the output of failing **and**
      passing tests as files in directory
  * Experimental: add return code checks to `run` via `!`/`-<N>`
  * `install.sh` and `uninstall.sh` take an optional second parameter for the lib
    folder name to allow for multilib install, e.g. into lib64
  * add `run` flag `--keep-empty-lines` to retain empty lines in `${lines[@]}`
  * add `run` flag `--separate-stderr` which also fills `$stderr` and
    `$stderr_lines`
  * don't glob `run`'s `$output` when splitting into `${lines[@]}`
  * remove empty line after test with pretty formatter on some terminals
  * don't run setup_file/teardown_file on files without tests, e.g. due to
    filtering
  * print final line without newline on Bash 3.2 for midtest (ERREXIT) failures
  * abort with error on missing flock/shlock when running in parallel mode
  * improved `set -u` test and fixed some unset variable accesses
  * shorten suite/file/test temporary folder paths to leave enough space even on
    restricted systems
  * added BATS_TEST_TMPDIR, BATS_FILE_TMPDIR, BATS_SUITE_TMPDIR
  * added checks and improved documentation for `$BATS_TMPDIR`
  * the docker container now uses [tini](https://github.com/krallin/tini) as the
    container entrypoint to improve signal forwarding
  * script to uninstall bats from a given prefix
  * replace preprocessed file path (e.g. `/tmp/bats-run-22908-NP0f9h/bats.23102.src`)
    with original filename in stdout/err (but not FD3!)
  * print aborted command on SIGINT/CTRL+C
  * print error message when BATS_RUN_TMPDIR could not be created
Comments 0
openSUSE Build Service is sponsored by