goldplate icon indicating copy to clipboard operation
goldplate copied to clipboard

Assertion 'created_directory' eagerly removes directory before other assertions are checked

Open andreasabel opened this issue 2 years ago • 0 comments

Assertion 'created_directory' eagerly removes directory before other assertions are checked. E.g. you cannot place the created_directory assertion before the created_file assertion here: https://github.com/fugue/goldplate/blob/a2c20310149a69522d0efc2cdcd8e1081f5f93b4/tests/create.goldplate#L9-L13

A bit too imperative for my taste. I would have expected a declarative approach to these assertions, so that the order in which I write these do not matter.

andreasabel avatar Mar 25 '23 16:03 andreasabel