willowtreeapps / assertk

assertions for kotlin inspired by assertj
MIT License
771 stars 87 forks source link

use 'given' to wrap multiple assertions #423

Closed katiedotson closed 1 year ago

katiedotson commented 2 years ago

Fix for #421 uses given to wrap multiple assertions. One potential issue here is if there are multiple failures in a block, only the first will be shown as a cause. I might suggest making a separate function to solve for this.

rybick commented 2 years ago

I have created a different fix for https://github.com/willowtreeapps/assertk/issues/421 a couple of days ago: https://github.com/willowtreeapps/assertk/pull/422 It doesn't have the problem that it shows only first error in a block, but is a little more complex.

evant commented 1 year ago

Should be fixed by https://github.com/willowtreeapps/assertk/pull/437