Hi metaflow, quick question: I have a flow with ma...
# ask-metaflow
a
Hi metaflow, quick question: I have a flow with many steps; trying to think of the best way to make tests for each step without having to run the whole flow… my thought was to exploit the way subcommands call each step… something like: 1. create a “toy-test” run; save expected results locally. 2. “test” by (re)running each step independently. using something like
Copy code
python flow.py --quite --metadata local --environment local --datastore local --event-logger nullSidecarLogger --monitor nullSidecarMonitor --datastore-root .metaflow step <STEP-I-WANNA-TEST> --run-id <RUN-ID-OF-TOY-TEST-FLOW> --task-id XX --input-paths <PATH-TO-LOCAL-DATA> --retry-count 0 --max-user-code-retries 0 --namespace user:me
1. verify the output is as expected. This way I could isolate the step I wanted to test. I was wondering if this approach would work, or if there is a better pattern for isolated testing of a single step?
1
1