Skip to content

Releases: buildkite-plugins/buildkite-plugin-tester

v4.1.1 (🍪 Chocolate Cookie)

15 Feb 23:06
cb6ce68
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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