bats-core/bats-core (docker.io/bats/bats)
### [`v1.11.0`](https://redirect.github.com/bats-core/bats-core/releases/tag/v1.11.0)
[Compare Source](https://redirect.github.com/bats-core/bats-core/compare/v1.10.0...v1.11.0)
#### Added:
- hardened CI scripts by using hashes instead of versions for actions and restricting permissions ([#754](https://redirect.github.com/bats-core/bats-core/issues/754), [#770](https://redirect.github.com/bats-core/bats-core/issues/770))
- add security.md ([#762](https://redirect.github.com/bats-core/bats-core/issues/762))
- add codespell CI checks ([#720](https://redirect.github.com/bats-core/bats-core/issues/720))
- dynamic test registration via `bats_test_function` ([#349](https://redirect.github.com/bats-core/bats-core/issues/349))
- add check that Bats is executed with Bash >= 3.2 ([#873](https://redirect.github.com/bats-core/bats-core/issues/873))
#### Fixed:
- `install.sh` now works for deviating `lib/` dirs (like `lib32`,`lib64`) ([#487](https://redirect.github.com/bats-core/bats-core/issues/487))
- catch unset `BATS_TEST_SOURCE` in `lib/bats-core/tracing.bash` so
`set -u`/`set -o nounset` works as expected ([#827](https://redirect.github.com/bats-core/bats-core/issues/827))
- fix `--gather-test-outputs-in` fails on tests with multiple `/` ([#789](https://redirect.github.com/bats-core/bats-core/issues/789))
- install does not create unused `/usr/share/bats` anymore ([#857](https://redirect.github.com/bats-core/bats-core/issues/857))
- ensure IFS is unchanged in `{setup,teardown}{_suite,_file,}`, `@test` and free code ([#879](https://redirect.github.com/bats-core/bats-core/issues/879))
- junit formatter: remove ANSI Codes to avoid invalid XML character ([#886](https://redirect.github.com/bats-core/bats-core/issues/886))
#### Changed:
- update Docker image with the latest `bats-file` version 0.4.0 ([#780](https://redirect.github.com/bats-core/bats-core/issues/780))
- update Docker image with the latest `bats-detik` version 1.3.0 ([#876](https://redirect.github.com/bats-core/bats-core/issues/876))
#### Documentation
- clarify docker usage ([#741](https://redirect.github.com/bats-core/bats-core/issues/741))
- update Arch Linux package URL in installation.rst ([#821](https://redirect.github.com/bats-core/bats-core/issues/821))
- rename bash-bats to bats for Arch Linux in installation.rst ([#836](https://redirect.github.com/bats-core/bats-core/issues/836))
- fix FAQ entry about setup-/teardown_suite, as they are available now ([#861](https://redirect.github.com/bats-core/bats-core/issues/861))
- added logo ([#881](https://redirect.github.com/bats-core/bats-core/issues/881))
### [`v1.10.0`](https://redirect.github.com/bats-core/bats-core/releases/tag/v1.10.0)
[Compare Source](https://redirect.github.com/bats-core/bats-core/compare/v1.10.0...v1.10.0)
#### Added:
- add `${BATS_TEST_TAGS[@]}` for querying the tags during a test ([#705](https://redirect.github.com/bats-core/bats-core/issues/705))
- print tags on failing tests ([#705](https://redirect.github.com/bats-core/bats-core/issues/705))
- test for negative arguments to `--jobs` ([#693](https://redirect.github.com/bats-core/bats-core/issues/693))
- add tests for `--formatter cat` ([#710](https://redirect.github.com/bats-core/bats-core/issues/710))
- test coverage in CI ([#718](https://redirect.github.com/bats-core/bats-core/issues/718))
- Support for [rush](https://redirect.github.com/shenwei356/rush) as alternative to GNU parallel ([#729](https://redirect.github.com/bats-core/bats-core/issues/729))
- add `bats_pipe` helper function for `run` that executes `\|` as pipes ([#663](https://redirect.github.com/bats-core/bats-core/issues/663))
- publish docker images to ghcr.io (additionally to Dockerhub) ([#740](https://redirect.github.com/bats-core/bats-core/issues/740))
##### Documentation:
- clarify use cases of `--formatter cat` ([#710](https://redirect.github.com/bats-core/bats-core/issues/710))
#### Fixed:
- fix `run` with options overwriting the value of `i` ([#726](https://redirect.github.com/bats-core/bats-core/issues/726), [#727](https://redirect.github.com/bats-core/bats-core/issues/727))
- fix `${BATS_TEST_NAMES[@]}` containing only `--tags` instead of test name since Bats v1.8.0 ([#705](https://redirect.github.com/bats-core/bats-core/issues/705))
- fix `run --keep-empty-lines` counting trailing `\n` as (empty) new line ([#711](https://redirect.github.com/bats-core/bats-core/issues/711))
- fix short flag unpacker creating bogus command lines with valued flags ([#732](https://redirect.github.com/bats-core/bats-core/issues/732))
- fix formatter becoming confused with retries ([#734](https://redirect.github.com/bats-core/bats-core/issues/734))
- fix `--gather-test-outputs-in` fails on tests with `/` ([#735](https://redirect.github.com/bats-core/bats-core/issues/735))
- fix overriding `date` breaks `--timing` ([#736](https://redirect.github.com/bats-core/bats-core/issues/736))
##### Documentation
- typos, minor edits ([#704](https://redirect.github.com/bats-core/bats-core/issues/704))
- simplified contributing.md ([#718](https://redirect.github.com/bats-core/bats-core/issues/718))
### [`v1.10.0`](https://redirect.github.com/bats-core/bats-core/releases/tag/v1.10.0)
[Compare Source](https://redirect.github.com/bats-core/bats-core/compare/v1.9.0...v1.10.0)
##### Added:
- add `${BATS_TEST_TAGS[@]}` for querying the tags during a test ([#705](https://redirect.github.com/bats-core/bats-core/issues/705))
- print tags on failing tests ([#705](https://redirect.github.com/bats-core/bats-core/issues/705))
- test for negative arguments to `--jobs` ([#693](https://redirect.github.com/bats-core/bats-core/issues/693))
- add tests for `--formatter cat` ([#710](https://redirect.github.com/bats-core/bats-core/issues/710))
- test coverage in CI ([#718](https://redirect.github.com/bats-core/bats-core/issues/718))
- Support for [rush](https://redirect.github.com/shenwei356/rush) as alternative to GNU parallel ([#729](https://redirect.github.com/bats-core/bats-core/issues/729))
- add `bats_pipe` helper function for `run` that executes `\|` as pipes ([#663](https://redirect.github.com/bats-core/bats-core/issues/663))
- publish docker images to ghcr.io (additionally to Dockerhub) ([#740](https://redirect.github.com/bats-core/bats-core/issues/740))
##### Documentation:
- clarify use cases of `--formatter cat` ([#710](https://redirect.github.com/bats-core/bats-core/issues/710))
##### Fixed:
- fix `run` with options overwriting the value of `i` ([#726](https://redirect.github.com/bats-core/bats-core/issues/726), [#727](https://redirect.github.com/bats-core/bats-core/issues/727))
- fix `${BATS_TEST_NAMES[@]}` containing only `--tags` instead of test name since Bats v1.8.0 ([#705](https://redirect.github.com/bats-core/bats-core/issues/705))
- fix `run --keep-empty-lines` counting trailing `\n` as (empty) new line ([#711](https://redirect.github.com/bats-core/bats-core/issues/711))
- fix short flag unpacker creating bogus command lines with valued flags ([#732](https://redirect.github.com/bats-core/bats-core/issues/732))
- fix formatter becoming confused with retries ([#734](https://redirect.github.com/bats-core/bats-core/issues/734))
- fix `--gather-test-outputs-in` fails on tests with `/` ([#735](https://redirect.github.com/bats-core/bats-core/issues/735))
- fix overriding `date` breaks `--timing` ([#736](https://redirect.github.com/bats-core/bats-core/issues/736))
##### Documentation
- typos, minor edits ([#704](https://redirect.github.com/bats-core/bats-core/issues/704))
- simplified contributing.md ([#718](https://redirect.github.com/bats-core/bats-core/issues/718))
### [`v1.9.0`](https://redirect.github.com/bats-core/bats-core/releases/tag/v1.9.0)
[Compare Source](https://redirect.github.com/bats-core/bats-core/compare/v1.8.2...v1.9.0)
#### Added:
- add installation instructions for Debian, Fedora, Gentoo, and OpenSUSE ([#659](https://redirect.github.com/bats-core/bats-core/issues/659))
- add `--line-reference-format` to switch file/line references in stack traces ([#665](https://redirect.github.com/bats-core/bats-core/issues/665))
- `comma_line` (default): `file.bats, line 1`
- `colon`: `file.bats:1`
- `uri`: `file:///path/to/file.bats:1`
- `custom`: define your own formatter in `bats_format_file_line_reference_custom`
- add `bats:focus` tag to run only focused tests ([#679](https://redirect.github.com/bats-core/bats-core/issues/679))
- add bats-support, bats-assert, bats-file and bats-detik to Dockerfile ([#674](https://redirect.github.com/bats-core/bats-core/issues/674))
##### Documentation:
- add `--help` text and `man` page content for `--filter-tags` ([#679](https://redirect.github.com/bats-core/bats-core/issues/679))
#### Fixed:
- explicitly check for GNU parallel ([#691](https://redirect.github.com/bats-core/bats-core/issues/691))
- wait for report-formatter to finish before ending `bats`' execution,
to fix empty files with `--report-fomatter junit` under Docker ([#692](https://redirect.github.com/bats-core/bats-core/issues/692))
##### Documentation
- improved clarity of section about output in free code ([#671](https://redirect.github.com/bats-core/bats-core/issues/671))
- fixed typos ([#673](https://redirect.github.com/bats-core/bats-core/issues/673))
- clarify use cases of `run` ([#366](https://redirect.github.com/bats-core/bats-core/issues/366))
### [`v1.8.2`](https://redirect.github.com/bats-core/bats-core/releases/tag/v1.8.2)
[Compare Source](https://redirect.github.com/bats-core/bats-core/compare/v1.8.1...v1.8.2)
Bats 1.8.2
Released: 2022-10-19
Fixed:
- fix non zero return code on successful retried tests ([#670](https://redirect.github.com/bats-core/bats-core/issues/670))
### [`v1.8.1`](https://redirect.github.com/bats-core/bats-core/releases/tag/v1.8.1)
[Compare Source](https://redirect.github.com/bats-core/bats-core/compare/v1.8.0...v1.8.1)
Bats 1.8.1
Released: 2022-10-19
Fixed:
- `shfmt` all files and enforce via CI ([#651](https://redirect.github.com/bats-core/bats-core/issues/651))
- avoid kernel warning flood/hang with CTRL+C on Bash 5.2 RC ([#656](https://redirect.github.com/bats-core/bats-core/issues/656))
- Fix infinite wait with (invalid) `-j` (without space) ([#657](https://redirect.github.com/bats-core/bats-core/issues/657))
### [`v1.8.0`](https://redirect.github.com/bats-core/bats-core/releases/tag/v1.8.0)
[Compare Source](https://redirect.github.com/bats-core/bats-core/compare/v1.7.0...v1.8.0)
Bats 1.8.0
Released: 2022-09-15
#### Added:
- using external formatters via `--formatter ` (also works for
`--report-formatter`) ([#602](https://redirect.github.com/bats-core/bats-core/issues/602))
- running only tests that failed in the last run via `--filter-status failed` ([#483](https://redirect.github.com/bats-core/bats-core/issues/483))
- variable `BATS_TEST_RETRIES` that specifies how often a test should be
reattempted before it is considered failed ([#618](https://redirect.github.com/bats-core/bats-core/issues/618))
- Docker tags `latest-no-faccessat2` and `-no-faccessat2` for
avoiding `bash: bats: No such file or directory` on `docker<20.10` (or
`runc`/`# bats file_tags=` and
`--filter-tags ` for tagging tests for execution filters ([#642](https://redirect.github.com/bats-core/bats-core/issues/642))
- warning BW03: inform about `setup_suite` in wrong file (`.bats` instead of `setup_suite.bash`) ([#652](https://redirect.github.com/bats-core/bats-core/issues/652))
##### Documentation
- update gotcha about negated statements: Recommend using `run !` on Bats
versions >=1.5.0 ([#593](https://redirect.github.com/bats-core/bats-core/issues/593))
- add documentation for `bats_require_minimum_version` ([#595](https://redirect.github.com/bats-core/bats-core/issues/595))
- improve documentation about `setup_suite` ([#652](https://redirect.github.com/bats-core/bats-core/issues/652))
#### Fixed:
- added missing shebang ([#597](https://redirect.github.com/bats-core/bats-core/issues/597))
- remaining instances of `run -` being incorrectly documented as `run =` ([#599](https://redirect.github.com/bats-core/bats-core/issues/599))
- allow `--gather-test-outputs-in ` to work with existing, empty
directories ([#603](https://redirect.github.com/bats-core/bats-core/issues/603))
- also add `--clean-and-gather-test-outputs-in ` for improved UX
- double slashes in paths derived from TMPDIR on MacOS ([#607](https://redirect.github.com/bats-core/bats-core/issues/607))
- fix `load` in `teardown` marking failed tests as not run ([#612](https://redirect.github.com/bats-core/bats-core/issues/612))
- fix unset variable errors (with set -u) and add regression test ([#621](https://redirect.github.com/bats-core/bats-core/issues/621))
- `teardown_file` errors don't swallow `setup_file` errors anymore, the behavior
is more like `teardown`'s now (only `return`/last command can trigger `teardown`
errors) ([#623](https://redirect.github.com/bats-core/bats-core/issues/623))
- upgraded from deprecated CI envs for MacOS (10 -> 11,12) and Ubuntu
(18.04 -> 22.04) ([#630](https://redirect.github.com/bats-core/bats-core/issues/630))
- add `/usr/lib/bats` as default value for `BATS_LIB_PATH` ([#628](https://redirect.github.com/bats-core/bats-core/issues/628))
- fix unset variable in `bats-formatter-junit` when `setup_file` fails ([#632](https://redirect.github.com/bats-core/bats-core/issues/632))
- unify error behavior of `teardown`/`teardown_file`/`teardown_suite` functions:
only fail via return code, not via ERREXIT ([#633](https://redirect.github.com/bats-core/bats-core/issues/633))
- fix unbound variable errors with `set -u` on `setup_suite` failures ([#643](https://redirect.github.com/bats-core/bats-core/issues/643))
- fix `load` not being available in `setup_suite` ([#644](https://redirect.github.com/bats-core/bats-core/issues/644))
- fix RPM spec, add regression test ([#648](https://redirect.github.com/bats-core/bats-core/issues/648))
- fix handling of `IFS` by `run` ([#650](https://redirect.github.com/bats-core/bats-core/issues/650))
- only print `setup_suite`'s stderr on errors ([#649](https://redirect.github.com/bats-core/bats-core/issues/649))
##### Documentation
- fix typos, spelling and links ([#596](https://redirect.github.com/bats-core/bats-core/issues/596), [#604](https://redirect.github.com/bats-core/bats-core/issues/604), [#619](https://redirect.github.com/bats-core/bats-core/issues/619), [#627](https://redirect.github.com/bats-core/bats-core/issues/627))
- fix redirection order of an example in the tutorial ([#617](https://redirect.github.com/bats-core/bats-core/issues/617))
### [`v1.7.0`](https://redirect.github.com/bats-core/bats-core/releases/tag/v1.7.0)
[Compare Source](https://redirect.github.com/bats-core/bats-core/compare/v1.6.1...v1.7.0)
Bats 1.7.0
Released: 2022-05-14
#### Added:
- Pretty formatter print filename when entering file ([#561](https://redirect.github.com/bats-core/bats-core/issues/561))
- BATS_TEST_NAME_PREFIX allows prefixing test names on stdout and in reports ([#561](https://redirect.github.com/bats-core/bats-core/issues/561))
- setup_suite and teardown_suite ([#571](https://redirect.github.com/bats-core/bats-core/issues/571), [#585](https://redirect.github.com/bats-core/bats-core/issues/585))
- out-of-band warning infrastructure, with following warnings:
- BW01: run command not found (exit code 127) ([#586](https://redirect.github.com/bats-core/bats-core/issues/586))
- BW02: run uses flags without proper `bats_require_minimum_version` guard ([#587](https://redirect.github.com/bats-core/bats-core/issues/587))
- `bats_require_minimum_version` to guard code that would not run on older
versions ([#587](https://redirect.github.com/bats-core/bats-core/issues/587))
##### Documentation
- document `$BATS_VERSION` ([#557](https://redirect.github.com/bats-core/bats-core/issues/557))
- document new warning infrastructure ([#589](https://redirect.github.com/bats-core/bats-core/issues/589), [#587](https://redirect.github.com/bats-core/bats-core/issues/587), [#586](https://redirect.github.com/bats-core/bats-core/issues/586))
#### Fixed:
- unbound variable errors in formatters when using `SHELLOPTS=nounset` (`-u`) ([#558](https://redirect.github.com/bats-core/bats-core/issues/558))
- don't require `flock` *and* `shlock` for parallel mode test ([#554](https://redirect.github.com/bats-core/bats-core/issues/554))
- print name of failing test when using TAP13 with timing information ([#559](https://redirect.github.com/bats-core/bats-core/issues/559), [#555](https://redirect.github.com/bats-core/bats-core/issues/555))
- removed broken symlink, added regression test ([#560](https://redirect.github.com/bats-core/bats-core/issues/560))
- don't show empty lines as `#` with pretty formatter ([#561](https://redirect.github.com/bats-core/bats-core/issues/561))
- prevent `teardown`, `teardown_file`, and `teardown_suite` from overriding bats'
exit code by setting `$status` (e.g. via calling `run`) ([#581](https://redirect.github.com/bats-core/bats-core/issues/581), [#575](https://redirect.github.com/bats-core/bats-core/issues/575))
- **CRITICAL**: this can return exit code 0 despite failed tests, thus preventing
your CI from reporting test failures! The regression happened in version 1.6.0.
- `run --keep-empty-lines` now reports 0 lines on empty `$output` ([#583](https://redirect.github.com/bats-core/bats-core/issues/583))
##### Documentation
- remove 2018 in title, update copyright dates in README.md ([#567](https://redirect.github.com/bats-core/bats-core/issues/567))
- fix broken links ([#568](https://redirect.github.com/bats-core/bats-core/issues/568))
- corrected invalid documentation of `run -N` (had `=N` instead) ([#579](https://redirect.github.com/bats-core/bats-core/issues/579))
- **CRITICAL**: using the incorrect form can lead to silent errors. See
[issue #578](https://redirect.github.com/bats-core/bats-core/issues/578) for more
details and how to find out if your tests are affected.
### [`v1.6.1`](https://redirect.github.com/bats-core/bats-core/releases/tag/v1.6.1)
[Compare Source](https://redirect.github.com/bats-core/bats-core/compare/v1.6.0...v1.6.1)
Bats 1.6.1
Released: 2022-05-14
#### Fixed:
- prevent `teardown`, `teardown_file`, and `teardown_suite` from overriding bats'
exit code by setting `$status` (e.g. via calling `run`) ([#581](https://redirect.github.com/bats-core/bats-core/issues/581), [#575](https://redirect.github.com/bats-core/bats-core/issues/575))
- **CRITICAL**: this can return exit code 0 despite failed tests, thus preventing
your CI from reporting test failures! The regression happened in version 1.6.0.
##### Documentation
- corrected invalid documentation of `run -N` (had `=N` instead) ([#579](https://redirect.github.com/bats-core/bats-core/issues/579))
- **CRITICAL**: using the incorrect form can lead to silent errors. See [issue #578](https://redirect.github.com/bats-core/bats-core/issues/578) for more details and how to find out if your tests are affected.
### [`v1.6.0`](https://redirect.github.com/bats-core/bats-core/releases/tag/v1.6.0)
[Compare Source](https://redirect.github.com/bats-core/bats-core/compare/v1.6.0...v1.6.0)
Bats 1.6.0
Released: 2022-02-24
#### Added:
- new flag `--code-quote-style` (and `$BATS_CODE_QUOTE_STYLE`) to customize
quotes around code blocks in error output ([#506](https://redirect.github.com/bats-core/bats-core/issues/506))
- an example/regression test for running background tasks without blocking the
test run ([#525](https://redirect.github.com/bats-core/bats-core/issues/525), [#535](https://redirect.github.com/bats-core/bats-core/issues/535))
- `bats_load_library` for loading libraries from the search path
`$BATS_LIB_PATH` ([#548](https://redirect.github.com/bats-core/bats-core/issues/548))
#### Fixed:
- improved error trace for some broken cases ([#279](https://redirect.github.com/bats-core/bats-core/issues/279))
- removed leftover debug file `/tmp/latch` in selftest suite
(single use latch) ([#516](https://redirect.github.com/bats-core/bats-core/issues/516))
- fix recurring errors on CTRL+C tests with NPM on Windows in selftest suite ([#516](https://redirect.github.com/bats-core/bats-core/issues/516))
- fixed leaking of local variables from debug trap ([#520](https://redirect.github.com/bats-core/bats-core/issues/520))
- don't mark FD3 output from `teardown_file` as `` in junit output ([#532](https://redirect.github.com/bats-core/bats-core/issues/532))
- fix unbound variable error with Bash pre 4.4 ([#550](https://redirect.github.com/bats-core/bats-core/issues/550))
##### Documentation
- remove links to defunct freenode IRC channel ([#515](https://redirect.github.com/bats-core/bats-core/issues/515))
- improved grammar ([#534](https://redirect.github.com/bats-core/bats-core/issues/534))
- fixed link to TAP spec ([#537](https://redirect.github.com/bats-core/bats-core/issues/537))
### [`v1.6.0`](https://redirect.github.com/bats-core/bats-core/releases/tag/v1.6.0)
[Compare Source](https://redirect.github.com/bats-core/bats-core/compare/v1.5.0...v1.6.0)
Bats 1.6.0
Released: 2022-02-24
##### Added:
- new flag `--code-quote-style` (and `$BATS_CODE_QUOTE_STYLE`) to customize
quotes around code blocks in error output ([#506](https://redirect.github.com/bats-core/bats-core/issues/506))
- an example/regression test for running background tasks without blocking the
test run ([#525](https://redirect.github.com/bats-core/bats-core/issues/525), [#535](https://redirect.github.com/bats-core/bats-core/issues/535))
- `bats_load_library` for loading libraries from the search path
`$BATS_LIB_PATH` ([#548](https://redirect.github.com/bats-core/bats-core/issues/548))
##### Fixed:
- improved error trace for some broken cases ([#279](https://redirect.github.com/bats-core/bats-core/issues/279))
- removed leftover debug file `/tmp/latch` in selftest suite
(single use latch) ([#516](https://redirect.github.com/bats-core/bats-core/issues/516))
- fix recurring errors on CTRL+C tests with NPM on Windows in selftest suite ([#516](https://redirect.github.com/bats-core/bats-core/issues/516))
- fixed leaking of local variables from debug trap ([#520](https://redirect.github.com/bats-core/bats-core/issues/520))
- don't mark FD3 output from `teardown_file` as `` in junit output ([#532](https://redirect.github.com/bats-core/bats-core/issues/532))
- fix unbound variable error with Bash pre 4.4 ([#550](https://redirect.github.com/bats-core/bats-core/issues/550))
##### Documentation
- remove links to defunct freenode IRC channel ([#515](https://redirect.github.com/bats-core/bats-core/issues/515))
- improved grammar ([#534](https://redirect.github.com/bats-core/bats-core/issues/534))
- fixed link to TAP spec ([#537](https://redirect.github.com/bats-core/bats-core/issues/537))
### [`v1.5.0`](https://redirect.github.com/bats-core/bats-core/releases/tag/v1.5.0)
[Compare Source](https://redirect.github.com/bats-core/bats-core/compare/v1.5.0...v1.5.0)
Bats 1.5.0
Released: 2021-10-22
Added:
- new command line flags ([#488](https://redirect.github.com/bats-core/bats-core/issues/488))
- `--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 `: Gather the output of failing **and**
passing tests as files in directory
- Experimental: add return code checks to `run` via `!`/`-` ([#367](https://redirect.github.com/bats-core/bats-core/issues/367), [#507](https://redirect.github.com/bats-core/bats-core/issues/507))
- `install.sh` and `uninstall.sh` take an optional second parameter for the lib
folder name to allow for multilib install, e.g. into lib64 ([#452](https://redirect.github.com/bats-core/bats-core/issues/452))
- add `run` flag `--keep-empty-lines` to retain empty lines in `${lines[@]}` ([#224](https://redirect.github.com/bats-core/bats-core/issues/224),
[`a894fbf`](https://redirect.github.com/bats-core/bats-core/commit/a894fbfa))
- add `run` flag `--separate-stderr` which also fills `$stderr` and
`$stderr_lines` ([#47](https://redirect.github.com/bats-core/bats-core/issues/47), [`5c9b173`](https://redirect.github.com/bats-core/bats-core/commit/5c9b173d), [#507](https://redirect.github.com/bats-core/bats-core/issues/507))
Fixed:
- don't glob `run`'s `$output` when splitting into `${lines[@]}`
([#151](https://redirect.github.com/bats-core/bats-core/issues/151), [#152](https://redirect.github.com/bats-core/bats-core/issues/152), [#158](https://redirect.github.com/bats-core/bats-core/issues/158), [#156](https://redirect.github.com/bats-core/bats-core/issues/156), [#281](https://redirect.github.com/bats-core/bats-core/issues/281), [#289](https://redirect.github.com/bats-core/bats-core/issues/289))
- remove empty line after test with pretty formatter on some terminals ([#481](https://redirect.github.com/bats-core/bats-core/issues/481))
- don't run setup_file/teardown_file on files without tests, e.g. due to
filtering ([#484](https://redirect.github.com/bats-core/bats-core/issues/484))
- print final line without newline on Bash 3.2 for midtest (ERREXIT) failures
too ([#495](https://redirect.github.com/bats-core/bats-core/issues/495), [#145](https://redirect.github.com/bats-core/bats-core/issues/145))
- abort with error on missing flock/shlock when running in parallel mode ([#496](https://redirect.github.com/bats-core/bats-core/issues/496))
- improved `set -u` test and fixed some unset variable accesses ([#498](https://redirect.github.com/bats-core/bats-core/issues/498), [#501](https://redirect.github.com/bats-core/bats-core/issues/501))
- shorten suite/file/test temporary folder paths to leave enough space even on
restricted systems ([#503](https://redirect.github.com/bats-core/bats-core/issues/503))
##### Documentation
- minor edits ([#478](https://redirect.github.com/bats-core/bats-core/issues/478))
### [`v1.5.0`](https://redirect.github.com/bats-core/bats-core/releases/tag/v1.5.0)
[Compare Source](https://redirect.github.com/bats-core/bats-core/compare/v1.4.1...v1.5.0)
Bats 1.5.0
Released: 2021-10-22
Added:
- new command line flags ([#488](https://redirect.github.com/bats-core/bats-core/issues/488))
- `--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 `: Gather the output of failing **and**
passing tests as files in directory
- Experimental: add return code checks to `run` via `!`/`-` ([#367](https://redirect.github.com/bats-core/bats-core/issues/367), [#507](https://redirect.github.com/bats-core/bats-core/issues/507))
- `install.sh` and `uninstall.sh` take an optional second parameter for the lib
folder name to allow for multilib install, e.g. into lib64 ([#452](https://redirect.github.com/bats-core/bats-core/issues/452))
- add `run` flag `--keep-empty-lines` to retain empty lines in `${lines[@]}` ([#224](https://redirect.github.com/bats-core/bats-core/issues/224),
[`a894fbf`](https://redirect.github.com/bats-core/bats-core/commit/a894fbfa))
- add `run` flag `--separate-stderr` which also fills `$stderr` and
`$stderr_lines` ([#47](https://redirect.github.com/bats-core/bats-core/issues/47), [`5c9b173`](https://redirect.github.com/bats-core/bats-core/commit/5c9b173d), [#507](https://redirect.github.com/bats-core/bats-core/issues/507))
Fixed:
- don't glob `run`'s `$output` when splitting into `${lines[@]}`
([#151](https://redirect.github.com/bats-core/bats-core/issues/151), [#152](https://redirect.github.com/bats-core/bats-core/issues/152), [#158](https://redirect.github.com/bats-core/bats-core/issues/158), [#156](https://redirect.github.com/bats-core/bats-core/issues/156), [#281](https://redirect.github.com/bats-core/bats-core/issues/281), [#289](https://redirect.github.com/bats-core/bats-core/issues/289))
- remove empty line after test with pretty formatter on some terminals ([#481](https://redirect.github.com/bats-core/bats-core/issues/481))
- don't run setup_file/teardown_file on files without tests, e.g. due to
filtering ([#484](https://redirect.github.com/bats-core/bats-core/issues/484))
- print final line without newline on Bash 3.2 for midtest (ERREXIT) failures
too ([#495](https://redirect.github.com/bats-core/bats-core/issues/495), [#145](https://redirect.github.com/bats-core/bats-core/issues/145))
- abort with error on missing flock/shlock when running in parallel mode ([#496](https://redirect.github.com/bats-core/bats-core/issues/496))
- improved `set -u` test and fixed some unset variable accesses ([#498](https://redirect.github.com/bats-core/bats-core/issues/498), [#501](https://redirect.github.com/bats-core/bats-core/issues/501))
- shorten suite/file/test temporary folder paths to leave enough space even on
restricted systems ([#503](https://redirect.github.com/bats-core/bats-core/issues/503))
##### Documentation
- minor edits ([#478](https://redirect.github.com/bats-core/bats-core/issues/478))
Configuration
π Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
π¦ Automerge: Disabled by config. Please merge this manually once you are satisfied.
β» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
π Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR contains the following updates:
v1.4.1
->1.11.0
Release Notes
bats-core/bats-core (docker.io/bats/bats)
### [`v1.11.0`](https://redirect.github.com/bats-core/bats-core/releases/tag/v1.11.0) [Compare Source](https://redirect.github.com/bats-core/bats-core/compare/v1.10.0...v1.11.0) #### Added: - hardened CI scripts by using hashes instead of versions for actions and restricting permissions ([#754](https://redirect.github.com/bats-core/bats-core/issues/754), [#770](https://redirect.github.com/bats-core/bats-core/issues/770)) - add security.md ([#762](https://redirect.github.com/bats-core/bats-core/issues/762)) - add codespell CI checks ([#720](https://redirect.github.com/bats-core/bats-core/issues/720)) - dynamic test registration via `bats_test_function` ([#349](https://redirect.github.com/bats-core/bats-core/issues/349)) - add check that Bats is executed with Bash >= 3.2 ([#873](https://redirect.github.com/bats-core/bats-core/issues/873)) #### Fixed: - `install.sh` now works for deviating `lib/` dirs (like `lib32`,`lib64`) ([#487](https://redirect.github.com/bats-core/bats-core/issues/487)) - catch unset `BATS_TEST_SOURCE` in `lib/bats-core/tracing.bash` so `set -u`/`set -o nounset` works as expected ([#827](https://redirect.github.com/bats-core/bats-core/issues/827)) - fix `--gather-test-outputs-in` fails on tests with multiple `/` ([#789](https://redirect.github.com/bats-core/bats-core/issues/789)) - install does not create unused `/usr/share/bats` anymore ([#857](https://redirect.github.com/bats-core/bats-core/issues/857)) - ensure IFS is unchanged in `{setup,teardown}{_suite,_file,}`, `@test` and free code ([#879](https://redirect.github.com/bats-core/bats-core/issues/879)) - junit formatter: remove ANSI Codes to avoid invalid XML character ([#886](https://redirect.github.com/bats-core/bats-core/issues/886)) #### Changed: - update Docker image with the latest `bats-file` version 0.4.0 ([#780](https://redirect.github.com/bats-core/bats-core/issues/780)) - update Docker image with the latest `bats-detik` version 1.3.0 ([#876](https://redirect.github.com/bats-core/bats-core/issues/876)) #### Documentation - clarify docker usage ([#741](https://redirect.github.com/bats-core/bats-core/issues/741)) - update Arch Linux package URL in installation.rst ([#821](https://redirect.github.com/bats-core/bats-core/issues/821)) - rename bash-bats to bats for Arch Linux in installation.rst ([#836](https://redirect.github.com/bats-core/bats-core/issues/836)) - fix FAQ entry about setup-/teardown_suite, as they are available now ([#861](https://redirect.github.com/bats-core/bats-core/issues/861)) - added logo ([#881](https://redirect.github.com/bats-core/bats-core/issues/881)) ### [`v1.10.0`](https://redirect.github.com/bats-core/bats-core/releases/tag/v1.10.0) [Compare Source](https://redirect.github.com/bats-core/bats-core/compare/v1.10.0...v1.10.0) #### Added: - add `${BATS_TEST_TAGS[@]}` for querying the tags during a test ([#705](https://redirect.github.com/bats-core/bats-core/issues/705)) - print tags on failing tests ([#705](https://redirect.github.com/bats-core/bats-core/issues/705)) - test for negative arguments to `--jobs` ([#693](https://redirect.github.com/bats-core/bats-core/issues/693)) - add tests for `--formatter cat` ([#710](https://redirect.github.com/bats-core/bats-core/issues/710)) - test coverage in CI ([#718](https://redirect.github.com/bats-core/bats-core/issues/718)) - Support for [rush](https://redirect.github.com/shenwei356/rush) as alternative to GNU parallel ([#729](https://redirect.github.com/bats-core/bats-core/issues/729)) - add `bats_pipe` helper function for `run` that executes `\|` as pipes ([#663](https://redirect.github.com/bats-core/bats-core/issues/663)) - publish docker images to ghcr.io (additionally to Dockerhub) ([#740](https://redirect.github.com/bats-core/bats-core/issues/740)) ##### Documentation: - clarify use cases of `--formatter cat` ([#710](https://redirect.github.com/bats-core/bats-core/issues/710)) #### Fixed: - fix `run` with options overwriting the value of `i` ([#726](https://redirect.github.com/bats-core/bats-core/issues/726), [#727](https://redirect.github.com/bats-core/bats-core/issues/727)) - fix `${BATS_TEST_NAMES[@]}` containing only `--tags` instead of test name since Bats v1.8.0 ([#705](https://redirect.github.com/bats-core/bats-core/issues/705)) - fix `run --keep-empty-lines` counting trailing `\n` as (empty) new line ([#711](https://redirect.github.com/bats-core/bats-core/issues/711)) - fix short flag unpacker creating bogus command lines with valued flags ([#732](https://redirect.github.com/bats-core/bats-core/issues/732)) - fix formatter becoming confused with retries ([#734](https://redirect.github.com/bats-core/bats-core/issues/734)) - fix `--gather-test-outputs-in` fails on tests with `/` ([#735](https://redirect.github.com/bats-core/bats-core/issues/735)) - fix overriding `date` breaks `--timing` ([#736](https://redirect.github.com/bats-core/bats-core/issues/736)) ##### Documentation - typos, minor edits ([#704](https://redirect.github.com/bats-core/bats-core/issues/704)) - simplified contributing.md ([#718](https://redirect.github.com/bats-core/bats-core/issues/718)) ### [`v1.10.0`](https://redirect.github.com/bats-core/bats-core/releases/tag/v1.10.0) [Compare Source](https://redirect.github.com/bats-core/bats-core/compare/v1.9.0...v1.10.0) ##### Added: - add `${BATS_TEST_TAGS[@]}` for querying the tags during a test ([#705](https://redirect.github.com/bats-core/bats-core/issues/705)) - print tags on failing tests ([#705](https://redirect.github.com/bats-core/bats-core/issues/705)) - test for negative arguments to `--jobs` ([#693](https://redirect.github.com/bats-core/bats-core/issues/693)) - add tests for `--formatter cat` ([#710](https://redirect.github.com/bats-core/bats-core/issues/710)) - test coverage in CI ([#718](https://redirect.github.com/bats-core/bats-core/issues/718)) - Support for [rush](https://redirect.github.com/shenwei356/rush) as alternative to GNU parallel ([#729](https://redirect.github.com/bats-core/bats-core/issues/729)) - add `bats_pipe` helper function for `run` that executes `\|` as pipes ([#663](https://redirect.github.com/bats-core/bats-core/issues/663)) - publish docker images to ghcr.io (additionally to Dockerhub) ([#740](https://redirect.github.com/bats-core/bats-core/issues/740)) ##### Documentation: - clarify use cases of `--formatter cat` ([#710](https://redirect.github.com/bats-core/bats-core/issues/710)) ##### Fixed: - fix `run` with options overwriting the value of `i` ([#726](https://redirect.github.com/bats-core/bats-core/issues/726), [#727](https://redirect.github.com/bats-core/bats-core/issues/727)) - fix `${BATS_TEST_NAMES[@]}` containing only `--tags` instead of test name since Bats v1.8.0 ([#705](https://redirect.github.com/bats-core/bats-core/issues/705)) - fix `run --keep-empty-lines` counting trailing `\n` as (empty) new line ([#711](https://redirect.github.com/bats-core/bats-core/issues/711)) - fix short flag unpacker creating bogus command lines with valued flags ([#732](https://redirect.github.com/bats-core/bats-core/issues/732)) - fix formatter becoming confused with retries ([#734](https://redirect.github.com/bats-core/bats-core/issues/734)) - fix `--gather-test-outputs-in` fails on tests with `/` ([#735](https://redirect.github.com/bats-core/bats-core/issues/735)) - fix overriding `date` breaks `--timing` ([#736](https://redirect.github.com/bats-core/bats-core/issues/736)) ##### Documentation - typos, minor edits ([#704](https://redirect.github.com/bats-core/bats-core/issues/704)) - simplified contributing.md ([#718](https://redirect.github.com/bats-core/bats-core/issues/718)) ### [`v1.9.0`](https://redirect.github.com/bats-core/bats-core/releases/tag/v1.9.0) [Compare Source](https://redirect.github.com/bats-core/bats-core/compare/v1.8.2...v1.9.0) #### Added: - add installation instructions for Debian, Fedora, Gentoo, and OpenSUSE ([#659](https://redirect.github.com/bats-core/bats-core/issues/659)) - add `--line-reference-format` to switch file/line references in stack traces ([#665](https://redirect.github.com/bats-core/bats-core/issues/665)) - `comma_line` (default): `file.bats, line 1` - `colon`: `file.bats:1` - `uri`: `file:///path/to/file.bats:1` - `custom`: define your own formatter in `bats_format_file_line_reference_custom` - add `bats:focus` tag to run only focused tests ([#679](https://redirect.github.com/bats-core/bats-core/issues/679)) - add bats-support, bats-assert, bats-file and bats-detik to Dockerfile ([#674](https://redirect.github.com/bats-core/bats-core/issues/674)) ##### Documentation: - add `--help` text and `man` page content for `--filter-tags` ([#679](https://redirect.github.com/bats-core/bats-core/issues/679)) #### Fixed: - explicitly check for GNU parallel ([#691](https://redirect.github.com/bats-core/bats-core/issues/691)) - wait for report-formatter to finish before ending `bats`' execution, to fix empty files with `--report-fomatter junit` under Docker ([#692](https://redirect.github.com/bats-core/bats-core/issues/692)) ##### Documentation - improved clarity of section about output in free code ([#671](https://redirect.github.com/bats-core/bats-core/issues/671)) - fixed typos ([#673](https://redirect.github.com/bats-core/bats-core/issues/673)) - clarify use cases of `run` ([#366](https://redirect.github.com/bats-core/bats-core/issues/366)) ### [`v1.8.2`](https://redirect.github.com/bats-core/bats-core/releases/tag/v1.8.2) [Compare Source](https://redirect.github.com/bats-core/bats-core/compare/v1.8.1...v1.8.2) Bats 1.8.2 Released: 2022-10-19 Fixed: - fix non zero return code on successful retried tests ([#670](https://redirect.github.com/bats-core/bats-core/issues/670)) ### [`v1.8.1`](https://redirect.github.com/bats-core/bats-core/releases/tag/v1.8.1) [Compare Source](https://redirect.github.com/bats-core/bats-core/compare/v1.8.0...v1.8.1) Bats 1.8.1 Released: 2022-10-19 Fixed: - `shfmt` all files and enforce via CI ([#651](https://redirect.github.com/bats-core/bats-core/issues/651)) - avoid kernel warning flood/hang with CTRL+C on Bash 5.2 RC ([#656](https://redirect.github.com/bats-core/bats-core/issues/656)) - Fix infinite wait with (invalid) `-jConfiguration
π Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
π¦ Automerge: Disabled by config. Please merge this manually once you are satisfied.
β» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
π Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.