Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Support folder structure with multiple directory scopes, each with its own step directory #1049

Open
estevensthedyrt opened this issue Aug 19, 2022 · 1 comment

Comments

@estevensthedyrt
Copy link

estevensthedyrt commented Aug 19, 2022

I would like to be able to store my projects in sub-folders. This would allow me to have multiple projects in a single features folder when working on enterprise level applications that have multiple interfaces and complex structure that makes working in single folders an absolute mess.

DESIRED DIRECTORY STRUCTURE:

features/
   +- Alice/
   |  +--AliceWeb/
   |  |   +--AliceWeb.feature
   |  +-- steps/
   |     +--- alice_web_steps.py
   +- Bob/
      +-- BobWeb/
      |   +--BobWeb.feature
      + --steps/
          +--bob_web_steps.py
@jenisys
Copy link
Member

jenisys commented Aug 20, 2022

The desired directory structure is currently only partly supported:

  • SUPPORTED: Feature files in a deep directory structure (like above)
  • NOT SUPPORTED: Multiple steps directories (and environment files)

POTENTIAL SOLUTIONS (until multiple step directories are supported):

  • Use a build script that performs two behave test runs, one on each directory scope
    (or: filters the feature-file path args and groups them by directory scope and uses these two parameter groups to trigger the behave test runs on each directory scope)
  • Provide your own behave test runner that supports discovery and step loading from multiple step directories and use the correct steps in the associated feature file directories
  • Use the stage concept if the feature files are the same and only the steps implementations varies

@jenisys jenisys changed the title Feature Request: Ability to use a folder structure to sort tests Feature Request: Support folder structure with multiple directory scopes, each with its own step directory Aug 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants