libcnb-test v0.4.0
Malax
released this
24 Jun 13:05
·
306 commits
to main
since this release
- Leverage
Into
trait forString
/&str
arguments inContainerContext
(#412). - Pass
--trust-builder
topack build
to ensure the builders used in tests are always trusted (#409). - Add
IntegrationTest::app_dir_preprocessor
, allowing users to modify the app directory before an integration test run (#397). - Update
bollard
dependency from 0.12.0 to 0.13.0 (#419). - Update
cargo_metadata
dependency from 0.14.2 to 0.15.0 (#423). - Add
assert_not_contains!
macro, an inverted version ofassert_contains!
. (#424). - Remove
IntegrationTest::run_test
, to run a test use the newTestRunner::run_test
function. (#422). - Rename
IntegrationTest
toTestConfig
. (#422). - Rename
IntegrationTestContext
toTestContext
. (#422). - Add
Clone
implementation forTestConfig
, allowing it to be shared across tests. (#422). - Add
TestContext::run_test
, allowing you to run subsequent integration tests with the image from a previous test. These functions allow testing of subsequent builds, including caching logic and buildpack behaviour when build environment variables change, stacks are upgraded and more. (#422). - Add
TestConfig::expected_pack_result
. When set toPackResult::Failure
, it allows testing of build failure scenarios. (#429). - Add
TestConfig::app_dir
which is handy in cases whereTestConfig
values are shared and only theapp_dir
needs to be different. (#430). - Remove
TestContext::app_dir
to encourage the use ofTestConfig::app_dir_preprocessor
. (#431). - Improve performance when no
TestConfig::app_dir_preprocessor
is configured by skipping application directory copying. (#431).