Skip to content

Releases: buildkite-plugins/buildkite-plugin-tester

v4.3.0 (🍫 Chocolate)

01 Dec 20:45
636f84f

Choose a tag to compare

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

Full Changelog: v4.2.0...v4.3.0

v4.2.0 (🧀🍳 Cheese Omelette)

07 Jul 16:22
d4af68f

Choose a tag to compare

What's Changed

Internal

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)

15 Feb 23:06
cb6ce68

Choose a tag to compare

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)

30 May 15:32
f237d45

Choose a tag to compare

Changed:

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)

09 Jan 15:26
5cb9be4

Choose a tag to compare

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)
  • 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, use refute_output (without arguments) to ensure there is no output instead

v3.0.1 (🥯 Salmon Bagel)

17 Sep 21:59
6743284

Choose a tag to compare

What's changed

Update bats-mock to v2.0.1 to fix bug PR #50 @toote

v3.0.0 (🔥 Updated mock library)

15 Sep 21:14
f72feed

Choose a tag to compare

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

05 Jun 04:19
5070895

Choose a tag to compare

What's Changed

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

05 Jun 04:16
37f0728

Choose a tag to compare

Merge pull request #33 from amukherjeetwilio/patch-1

Fix LIBS_BATS_MOCK_VERSION version number so it gets picked from the ENV