nodenv / node-build

Install NodeJS versions
MIT License
271 stars 80 forks source link

Update bats: 1.6.0 → 1.8.0 (minor) #774

Closed depfu[bot] closed 2 years ago

depfu[bot] commented 2 years ago

Here is everything you need to know about this update. Please take a good look at what changed and the test results before merging this pull request.

What changed?

✳️ bats (1.6.0 → 1.8.0) · Repo

Release Notes

1.8.0

Bats 1.8.0

Released: 2022-09-15

Added:

  • using external formatters via --formatter <absolute path> (also works for
    --report-formatter) (#602)
  • running only tests that failed in the last run via --filter-status failed (#483)
  • variable BATS_TEST_RETRIES that specifies how often a test should be
    reattempted before it is considered failed (#618)
  • Docker tags latest-no-faccessat2 and <bats-version\>-no-faccessat2 for
    avoiding bash: bats: No such file or directory on docker<20.10 (or
    runc<v1.0.0-rc93) (#622)
  • BATS_TEST_TIMEOUT variable to force a timeout on test (including setup()) (#491)
  • also print (nonempty) $stderr (from run --separate-stderr) with
    --print-output-on-failure (#631)
  • # bats test_tags=<tag list>/# bats file_tags=<tag list> and
    --filter-tags <tag list> for tagging tests for execution filters (#642)
  • warning BW03: inform about setup_file in wrong file (.bats instead of setup_suite.bash) (#652)

Documentation

  • update gotcha about negated statements: Recommend using run ! on Bats
    versions >=1.5.0 (#593)
  • add documentation for bats_require_minimum_version (#595)
  • improve documentation about setup_file (#652)

Fixed:

  • added missing shebang (#597)
  • remaining instances of run -<N> being incorrectly documented as run =<N> (#599)
  • allow --gather-test-outputs-in <directory> to work with existing, empty
    directories (#603)
    • also add --clean-and-gather-test-outputs-in <directory> for improved UX
  • double slashes in paths derived from TMPDIR on MacOS (#607)
  • fix load in teardown marking failed tests as not run (#612)
  • fix unset variable errors (with set -u) and add regression test (#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)
  • upgraded from deprecated CI envs for MacOS (10 -> 11,12) and Ubuntu
    (18.04 -> 22.04) (#630)
  • add /usr/lib/bats as default value for BATS_LIB_PATH (#628)
  • fix unset variable in bats-formatter-junit when setup_file fails (#632)
  • unify error behavior of teardown/teardown_file/teardown_suite functions:
    only fail via return code, not via ERREXIT (#633)
  • fix unbound variable errors with set -u on setup_suite failures (#643)
  • fix load not being available in setup_suite (#644)
  • fix RPM spec, add regression test (#648)
  • fix handling of IFS by run (#650)
  • only print setup_file's stderr on errors (#649)

Documentation

  • fix typos, spelling and links (#596, #604, #619, #627)
  • fix redirection order of an example in the tutorial (#617)

1.7.0

Bats 1.7.0

Released: 2022-05-14

Added:

  • 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)

Documentation

  • document $BATS_VERSION (#557)
  • document new warning infrastructure (#589, #587, #586)

Fixed:

  • 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)

Documentation

  • remove 2018 in title, update copyright dates in README.md (#567)
  • fix broken links (#568)
  • 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.

1.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, #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)
    • 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.

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.


Depfu Status

Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.

All Depfu comment commands
@​depfu rebase
Rebases against your default branch and redoes this update
@​depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@​depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@​depfu close
Closes this PR and deletes the branch
@​depfu reopen
Restores the branch and reopens this PR (if it's closed)
@​depfu pause
Ignores all future updates for this dependency and closes this PR
@​depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@​depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)
depfu[bot] commented 2 years ago

Closed in favor of #784.