protected evaluate method does not allow to use return values e.g. in tests. #897
Replies: 3 comments
-
There's a new testing system https://docs.spring.io/spring-shell/reference/testing/basics.html which might help you. Though it's more for e2e as result is what's visible in an emulated test screen. There's also Is there a specific reason you want to test through that evaluate method? |
Beta Was this translation helpful? Give feedback.
-
Thank you for your answer. Exactly as you said e2e, assertion based on the displayed text.
I need to you output of the evaluate method in the following calls. In this case |
Beta Was this translation helpful? Give feedback.
-
I got similar issue. In my case I need to evaluate strings provided by the user. It's a little disappointing there is no easy access to the command output. |
Beta Was this translation helpful? Give feedback.
-
I have migrated my project from spring-shell 2.x to 3.1.4. I was able to solve all differences.
The one, which I was not able to solve in the clear way
I used evaluate method in 2.x tests a lot:
I used shell wrapper which allows to execute evaluate method and provide the object as output.
Is there any clear way how to have the same functionality in 3.1.x?
Beta Was this translation helpful? Give feedback.
All reactions