Bash Automated Testing System

Edit Package bats
https://github.com/bats-core/bats-core#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 0000007067 6.9 KB
bats.spec 0000002189 2.14 KB
Revision 23 (latest revision is 38)
Olav Reinert's avatar Olav Reinert (oreinert) accepted request 933599 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 23)
- 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`)
Comments 0
openSUSE Build Service is sponsored by