Releases: buildkite-plugins/buildkite-plugin-tester
v4.3.0 (🍫 Chocolate)
Important changes
Stubs/mocks now are independent on each test. This means it should be possible to parallelize your tests when using mocks... on the other hand, if your tests depended on the side effect of tests running in a particular order due to stubs they will break.
What's Changed
- Add session tokens to role assumption by @duckalini in #92
- chore(deps): update buildkite plugin docker-compose to v5.11.0 by @renovate[bot] in #93
- chore(deps): update buildkite plugin docker-compose to v5.12.0 by @renovate[bot] in #94
- chore(deps): update buildkite plugin docker-compose to v5.12.1 by @renovate[bot] in #96
- chore(deps): update bats/bats docker tag to v1.13.0 by @renovate[bot] in #95
- Update bats-mock to latest version by @toote in #97
New Contributors
- @duckalini made their first contribution in #92
Full Changelog: v4.2.0...v4.3.0
v4.2.0 (🧀🍳 Cheese Omelette)
What's Changed
Internal
- Add Code of Conduct by @tomowatt in #74
- Build image for pushing by @toote in #76
- SUP-2419: Add CODEOWNERS by @tomowatt in #78
- Migrate deploy pipeline to the OSS Deploy cluster by @amu-g in #82
Dependencies
- Update buildkite plugin docker-compose to v5 by @renovate in #71
- Update buildkite plugin docker-compose to v5.1.0 by @renovate in #72
- Update buildkite plugin docker-compose to v5.2.0 by @renovate in #73
- Update bats/bats Docker tag to v1.11.0 by @renovate in #75
- chore(deps): update buildkite plugin docker-compose to v5.3.0 by @renovate in #79
- chore(deps): update bats/bats:1.11.0-no-faccessat2 docker digest to 4d5765d by @renovate in #77
- chore(deps): update buildkite plugin docker-compose to v5.4.0 by @renovate in #81
- chore(deps): update buildkite plugin docker-compose to v5.4.1 by @renovate in #83
- chore(deps): update buildkite plugin docker-compose to v5.5.0 by @renovate in #84
- chore(deps): update buildkite plugin docker-compose to v5.6.0 by @renovate in #86
- chore(deps): update buildkite plugin docker-compose to v5.7.0 by @renovate in #87
- chore(deps): update buildkite plugin aws-ssm to v1.1.0 by @renovate in #88
- chore(deps): update buildkite plugin docker-compose to v5.8.0 by @renovate in #89
- chore(deps): update buildkite plugin docker-compose to v5.9.0 by @renovate in #90
- chore(deps): update buildkite plugin docker-compose to v5.10.0 by @renovate in #91
- chore(deps): update bats/bats docker tag to v1.12.0 by @renovate in #85
New Contributors
Full Changelog: v4.1.1...v4.2.0
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
noaccessat2version 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 STRINGwill 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-mockto 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