-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
Milestone
Description
Hey,
first of all: thanks for providing this library - it simplifies script testing a lot!
I tried the TDD approach in a script-heavy project and found it quite hard to test piped commands:
...
envsubst < "${ARG_SOURCE_PATH}/shared/kind/kind.yaml" | kind create cluster --config -
...In this example i pipe a yaml config file to the kind command.
When mocking the kind command it is possible to get the args with mock_get_call_args, but is there a possibility to get the piped config value (stdin) too?
Maybe we could capture stdin in your generated mock file and provide a function mock_get_call_stdin - what do u think?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed