This came up as a response to https://github.com/willowtreeapps/assertk/issues/12. It would be useful to add additional information to a failure to aid with tracking down the cause. Some bikeshed syntax (may change):
assertThat(success, context = { "DB state: " + repository.findUser(USER_ID) }).hasSize(1)
// expected [size]:<1> but was:<0>
// DB state: User { name = "Tim" }"
This came up as a response to https://github.com/willowtreeapps/assertk/issues/12. It would be useful to add additional information to a failure to aid with tracking down the cause. Some bikeshed syntax (may change):