Skip to content

Packaging steps for distribution #1217

Answered by jenisys
alexanderilyin asked this question in Q&A
Discussion options

You must be logged in to vote

You basically have two choices as step writer:

  • CASE 1: The steps are bundled with your feature files in the steps directory
  • CASE 2: The steps are provided in a Python package and are used in a step-library with some glue code in the steps directory to import the needed/used steps from the Python package

If 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:

  • The glue code is currently required (as user control point).
  • It allows the user to select which steps of a Python package are used and which are not used.
  • I…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@alexanderilyin
Comment options

Answer selected by jenisys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants