SHA256
1
0
forked from pool/bats
Commit Graph

18 Commits

Author SHA256 Message Date
Olav Reinert
3c9889ff31 Accepting request 989604 from home:oreinert:branches:devel:tools
- Update to version 1.7.0:
  * Pretty formatter print filename when entering file (#561)
  * BATS_TEST_NAME_PREFIX allows prefixing test names on stdout and in reports (#561)
  * setup_suite and teardown_suite (#571, #585)
  * out-of-band warning infrastructure, with following warnings:
    * BW01: run command not found (exit code 127)  (#586)
    * BW02: run uses flags without proper `bats_require_minimum_version` guard (#587)
  * `bats_require_minimum_version` to guard code that would not run on older
    versions (#587)
  * unbound variable errors in formatters when using `SHELLOPTS=nounset` (`-u`) (#558)
  * don't require `flock` *and* `shlock` for parallel mode test (#554)
  * print name of failing test when using TAP13 with timing information (#559, #555)
  * removed broken symlink, added regression test (#560)
  * don't show empty lines as `#` with pretty formatter  (#561)
  * prevent `teardown`, `teardown_file`, and `teardown_suite` from overriding bats'
    exit code by setting `$status` (e.g. via calling `run`) (#581, #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)

OBS-URL: https://build.opensuse.org/request/show/989604
OBS-URL: https://build.opensuse.org/package/show/devel:tools/bats?expand=0&rev=29
2022-07-16 21:09:58 +00:00
Martin Pluskal
c8a77c5f99 Accepting request 981379 from home:oreinert:branches:devel:tools
- Update to version 1.6.1:
  * prevent teardown, teardown_file, and teardown_suite from overriding bats'
    exit code by setting $status (e.g. via calling run) (#581, #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.
  * corrected invalid documentation of run -N (had =N instead) (#579)
    - CRITICAL: using the incorrect form can lead to silent errors. See issue
      #578 for more details and how to find out if your tests are affected.

OBS-URL: https://build.opensuse.org/request/show/981379
OBS-URL: https://build.opensuse.org/package/show/devel:tools/bats?expand=0&rev=27
2022-06-08 19:39:17 +00:00
Olav Reinert
9bb5183a96 Accepting request 970604 from home:susnux:branches:devel:tools
- Update to version 1.6.0
  * Added: New flag --code-quote-style (and $BATS_CODE_QUOTE_STYLE)
    to customize quotes around code blocks in error output
  * Added: bats_load_library for loading libraries from the search
    path $BATS_LIB_PATH
  * Improved error trace for some broken cases
  * Fixed leaking of local variables from debug trap
  * Don't mark FD3 output from teardown_file as <failure> in junit
    output
  * Fix unbound variable error with Bash pre 4.4

OBS-URL: https://build.opensuse.org/request/show/970604
OBS-URL: https://build.opensuse.org/package/show/devel:tools/bats?expand=0&rev=25
2022-04-18 18:49:22 +00:00
Olav Reinert
e8b6e8b8a9 boo#1193177: Fix build on Leap and SLE
OBS-URL: https://build.opensuse.org/package/show/devel:tools/bats?expand=0&rev=24
2021-12-11 16:21:53 +00:00
Olav Reinert
3f85e900a0 Accepting request 933599 from home:dirkmueller:Factory
- 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`)

OBS-URL: https://build.opensuse.org/request/show/933599
OBS-URL: https://build.opensuse.org/package/show/devel:tools/bats?expand=0&rev=23
2021-11-28 15:06:21 +00:00
Olav Reinert
080e1577bd Accepting request 886488 from home:susnux:branches:devel:tools
Update to 1.3.0

OBS-URL: https://build.opensuse.org/request/show/886488
OBS-URL: https://build.opensuse.org/package/show/devel:tools/bats?expand=0&rev=21
2021-04-18 19:21:42 +00:00
Martin Pluskal
39768de0cd Accepting request 856586 from home:cyphar:bats
- Backport https://github.com/bats-core/bats-core/pull/344. bsc#1180135
  + bsc1180135-0001-fix-dont-use-unbound-variables-in-setup-methods.patch
- Require gnu_parallel so that 'bats --jobs' works out of the box and is tested
  as part of the integration tests of the package.

OBS-URL: https://build.opensuse.org/request/show/856586
OBS-URL: https://build.opensuse.org/package/show/devel:tools/bats?expand=0&rev=19
2020-12-17 06:53:18 +00:00
Olav Reinert
64c416b781 Accepting request 849515 from home:oreinert:branches:devel:tools
- update to 1.2.1:
  * added:
    - JUnit output and extensible formatter rewrite (#246)
    - load function now reads from absolute and relative paths, and $PATH (#282)
    - Beginner-friendly examples in /docs/examples (#243)
    - @peshay's bats-file fork contributed to bats-core/bats-file (#276)
  * changed:
    - Duplicate test names now error (previous behaviour was to issue a warning) (#286)
    - Changed default formatter in Docker to pretty by adding ncurses to Dockerfile, override with --tap (#239)
    - Replace "readlink -f" dependency with Bash solution (#217)

- Install to /usr/libexec on Tumbleweed

OBS-URL: https://build.opensuse.org/request/show/849515
OBS-URL: https://build.opensuse.org/package/show/devel:tools/bats?expand=0&rev=17
2020-11-19 23:27:00 +00:00
Olav Reinert
2f80b2bbb3 - update to 1.2.0:
* Added:
    - docs/CHANGELOG.md and docs/releasing.md (#122)
    - The -f, --filter flag to run only the tests matching a regular expression (#126)
    - Optimize stack trace capture (#138)
    - --jobs n flag to support parallel execution of tests with GNU parallel (#172)
  * Changed:
    - AppVeyor builds are now semver-compliant (#123)
    - Add Bash 5 as test target (#181)
    - Always use upper case signal names to avoid locale dependent err… (#215)
    - Fix for tests reading from stdin (#227)
    - Fix wrong line numbers of errors in bash < 4.4 (#229)
    - Remove preprocessed source after test run (#232)

OBS-URL: https://build.opensuse.org/package/show/devel:tools/bats?expand=0&rev=15
2020-05-20 12:13:34 +00:00
OBS User buildservice-autocommit
b68bc67baf Accepting request 739919 from devel:tools
baserev update by copy to link target

OBS-URL: https://build.opensuse.org/request/show/739919
OBS-URL: https://build.opensuse.org/package/show/devel:tools/bats?expand=0&rev=13
2019-11-06 12:53:59 +00:00
OBS User buildservice-autocommit
1c5135af09 Updating link to change in openSUSE:Factory/bats revision 5.0
OBS-URL: https://build.opensuse.org/package/show/devel:tools/bats?expand=0&rev=aa5fc4cb11d3b71c9000133b132c9c7d
2019-11-06 12:53:59 +00:00
Olav Reinert
01a0ade387 Reinstate prematurely removed Group tag
OBS-URL: https://build.opensuse.org/package/show/devel:tools/bats?expand=0&rev=12
2019-10-25 16:09:24 +00:00
Martin Pluskal
28bf558585 Accepting request 739878 from home:RBrownSUSE:branches:devel:tools
Remove obsolete Groups tag (fate#326485)

OBS-URL: https://build.opensuse.org/request/show/739878
OBS-URL: https://build.opensuse.org/package/show/devel:tools/bats?expand=0&rev=11
2019-10-17 14:30:41 +00:00
Olav Reinert
95e1ec7c46 Accepting request 667800 from home:mimi_vx:branches:devel:tools
- update to 1.1.0
- drop build-term.patch  package-json.patch
- new upstream, see changes on https://github.com/bats-core/bats-core/releases

OBS-URL: https://build.opensuse.org/request/show/667800
OBS-URL: https://build.opensuse.org/package/show/devel:tools/bats?expand=0&rev=9
2019-01-22 19:20:53 +00:00
Olav Reinert
ad09bda525 OBS-URL: https://build.opensuse.org/package/show/devel:tools/bats?expand=0&rev=7 2017-02-25 18:21:20 +00:00
Olav Reinert
ab19ebc995 - Fix RPM group
OBS-URL: https://build.opensuse.org/package/show/devel:tools/bats?expand=0&rev=3
2015-02-24 22:32:23 +00:00
Olav Reinert
6c313d6243 Spec file cleanup.
OBS-URL: https://build.opensuse.org/package/show/devel:tools/bats?expand=0&rev=2
2015-02-23 18:20:21 +00:00
Martin Pluskal
73fdabf9b6 Accepting request 287248 from home:oreinert
I want to maintain bats in Factory, and would like to use devel:tools as the devel project.

OBS-URL: https://build.opensuse.org/request/show/287248
OBS-URL: https://build.opensuse.org/package/show/devel:tools/bats?expand=0&rev=1
2015-02-22 18:54:35 +00:00