holunda-io / camunda-bpm-data

Beautiful process data handling for Camunda 7 Platform.
https://www.holunda.io/camunda-bpm-data/snapshot/
Apache License 2.0
31 stars 6 forks source link

Create asserts test variables being set, unset more easily #57

Open zambrovski opened 4 years ago

zambrovski commented 4 years ago

Scenario

As a developer of process (model) test, I'm interested in verifying that the process is orchestrating correctly and sets the process variables as expected.

Current Behaviour

None.

Wanted Behaviour

I want to be be able to assert that variables are set correctly. The assertions should work easily with camunda-bpm-assert.

mmiikkkkaa commented 4 years ago

Sounds like the changes I added within #80

zambrovski commented 3 years ago

In camunda-bpm-assert you can use asserts for the variables:

This concept can be extended to checking for:

Something similar has been already done in Camunda BPM JGiven:

https://github.com/holunda-io/camunda-bpm-jgiven/blob/696dd6734bb13605115967ab4667fceb5996421b/extension/src/main/kotlin/io/holunda/camunda/bpm/extension/jgiven/ProcessStage.kt#L236