-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inform developer about incidents happening in a test case (possibly marking invalid expressions) #188
Comments
@berndruecker Thanks for creating this issue. What currently happens is when a test fails the annotation will take care of printing the record stream which should make for easy debugging, eg:
Do you think this is not enough information for users? |
It is actually too much, the part you showed might be great - but also the BPMN XML and some other things are printed. Also the current format is still a bit cryptic - but probably some good basis to iterate on. I could imagine that there are different requirements if you test the core engine and if you use the engine to develop your process solution |
When I run a process test, I might encounter situations I have not foreseen, this is exactly the nature of writing tests :-)
I used zeebe-process-test 1.3.3 to test this process and actually used an invalid expression in the user task assignment. I can see this clearly in Operate if I run the process manually:
However, in my test case, I simply see, that I do not "arrive" in the user task, without any information about what just happened.
So in my case, I did some manual exploration to finally see the problem, which is now easy to fix. But this was an annoying detour.
I think we need to guide the user better than this. Spontaneous ideas:
inMemoryEngine.waitForIdleState()
should throw an exception if it ends with an incident?The text was updated successfully, but these errors were encountered: