Packaging steps for distribution #1217
-
Hi, love the tool, I wonder if there recommended way to distribute steps implementations (Python files)? I understand that there are a lot of project specific steps, but there are also some universal such as "Run sub-process and validate output" and I wonder what's the best way to extract those and share between repos? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I guess I just package Python files publish them to pypi. |
Beta Was this translation helpful? Give feedback.
-
You basically have two choices as step writer:
If you want to reuse your steps in multiple test projects, you basically have CASE 2 (which is the focus point in this issue). GLUE CODE:
SEE ALSO: OTHER ASPECTS:
|
Beta Was this translation helpful? Give feedback.
You basically have two choices as step writer:
steps
directorystep-library
with some glue code in thesteps
directory to import the needed/used steps from the Python packageIf you want to reuse your steps in multiple test projects, you basically have CASE 2 (which is the focus point in this issue).
But this requires that your step library is generic enough to be used in multiple test contexts.
GLUE CODE: