Releases: buildkite-plugins/buildkite-plugin-tester
v4.1.1 (🍪 Chocolate Cookie)
Changed:
- Updated bats-mock image from v2.1.0 to v2.1.1 #70 (@pzeballos)
- Several libs updates
Important: you need to ensure that you are using the helper script with the appropriate variable in your test scripts
load "${BATS_PLUGIN_PATH}/load.bash"
v4.1.0 (🤧 Allergies)
Changed:
- Updated bats base image from 1.8 to 1.9 (#57) @renovate-bot
- bats image update consequences (#60) @toote
Important: you need to ensure that you are using the helper script with the appropriate variable in your test scripts
load "${BATS_PLUGIN_PATH}/load.bash"
v4.0.0 (🎬 Movie Night)
What's changed
Dependencies updates PR #55 @frankpengau
- bats core:
1.7.0
~>1.8.2
- also using
noaccessat2
version of the bats image (solves #56)
- also using
- bats mock:
2.0.1
~>2.1.0
- stubs that received additional parameters will now fail
- you can now stub commands for any arguments received
- bats asserts:
0.3.0
~>2.1.0
- this is a huge jump and details on incompatibilities are scarce (so that is why this is a major release)
Incompatibilities found post-release
refute_line --partial STRING
will fail if there is no output, userefute_output
(without arguments) to ensure there is no output instead
v3.0.1 (🥯 Salmon Bagel)
v3.0.0 (🔥 Updated mock library)
What's Changed
- Update
bats-mock
to v2.0.0 by @toote
Updates bats-mock
not only is it now under the organization's umbrella, but also it fixes a major issue with stub parsing.
The way parameters are parsed fixes a bug that resulted in matching all commands when a stub contains an empty or multi-line string. Thus, if there are tests with either condition, it is possible they will break with this new version.
v2.0.0
What's Changed
- Update to bats-core v1.7.0 by @toolmantim in #44
- Update bats/bats digest to c707c5b by @renovate in #42
- Add bats-file by @toolmantim in #45
Full Changelog: v1.1.0...v2.0.0
Upgrading
BATS_PATH
has been renamed to BATS_PLUGIN_PATH
(see #44 for details). Your plugin tests will need to be updated, for example:
#!/usr/bin/env bats
-load "$BATS_PATH/load.bash"
+load "$BATS_PLUGIN_PATH/load.bash"
@test "prints some output" {
run $PWD/hooks/command
assert_output --partial "some output"
assert_success
}
v1.1.0
Merge pull request #33 from amukherjeetwilio/patch-1 Fix LIBS_BATS_MOCK_VERSION version number so it gets picked from the ENV