Noteworthy in Version 1.3.2¶
Support for Nested Step Modules¶
Support for nested step modules inside of the steps directory was added in behave v1.3.0.
This functionality has caused some problems,
if Python package(s) are placed in the steps directory that uses relative-import statements.
Therefore, the loading of nested step module is disabled by default since this version.
An experienced user can enable this feature by providing:
[behave]
use_nested_step_modules = true
See also
features/runner.use_substep_dirs.feature (RELATED: older solution)
Hint
BEST PRACTICE:
Use a step-library instead.
DO NOT put Python packages in the
stepsdirectory.
Python packages belong on the Python search path:
OPTION 0: Install the Python packages in a virtual environment (if ypu use one).
OPTION 1: Setup the Python search path by using the
PYTHONPATHenvironment variable.OPTION 2: Setup the Python search path in the
features/environment.pyfile.
SEE ALSO: