[Feature] Access to functional subroutine return values in tests #288
Labels
feature request
The issue could be reproduced
good first issue
Good for newcomers
help wanted
Extra attention is needed
Kind of proposals
Describe the feature
When testing user defined functions that return values there is no direct way to access the return value in a test. Like
testing.state
it would be nice to have another testing variable containing the return value of the previous function call.The idea is to be able to have a test written along the lines of:
Give us your considerations
testing.call_subroutine
could be updated to store the return value of function subroutines along the lines of how it is storing state transitions inctx.ReturnState
. With that value stored in the context a newtesting.return_value
testing variable could be added to give tests access to this value.The text was updated successfully, but these errors were encountered: