Skip to content

Separate location for feature files and step implementation #1153

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

You must be logged in to vote

Sorry, the answer is NO.

  • steps directory and environment.py file must be where your feature files are (as convention)
  • BUT: You can import the contents of these files/directory from other places (as normal Python packages; your PYTHONPATH environment variable must be set up correctly to find these packages)
  • In this case, these files are minimal and contain only glue code that specifies what should be used and where the implementation is.

SEE ALSO:

OTHERWISE:

  • You could provide your own Runner class and use it (but I would advise against it; reason: Nobody but you will understand where the steps/environment come from).

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@monicalicareti
Comment options

@jenisys
Comment options

@bittner
Comment options

@monicalicareti
Comment options

Answer selected by jenisys
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants