github TypedDevs/bashunit 0.43.0

5 hours ago

✨ Improvements

  • Branch coverage now reports loop constructs (while/until/for/select): the loop body is a single-arm branch, marked covered only when the loop ran at least once, so a never-entered zero-iteration loop surfaces as an uncovered branch (#855)

🛠️ Changes

  • Core string assertions (assert_contains/assert_not_contains, assert_matches/assert_not_matches, assert_string_starts_with/assert_string_ends_with and their negations) no longer fork a subshell per call to join their arguments; a fork-free join with identical behaviour replaces it (#844)
  • The array, date, duration, json, files and folders assertions now resolve their failure label through the fork-free slot helper instead of a per-call command substitution — same labels, fewer forks
  • Parallel test workers name their per-test result file by a per-suite ordinal instead of mktemp + mv, removing two forks per test (plus the echo \| tr \| sed arg sanitizing for data-provider tests) with identical result aggregation (#851)

👥 Contributors

Checksum

SHA256: 151f3647964d53d3f5a7065c141790fc1b66ea3039024c80ed09b3a9602064a2

Full Changelog: 0.42.0...0.43.0

Don't miss a new bashunit release

NewReleases is sending notifications on new releases.