Helping Hands
Helping Hands

Reputation: 5396

behave can't find step file

I am getting output :

ABORTED: By user.
0 features passed, 0 failed, 0 skipped
0 scenarios passed, 0 failed, 0 skipped
0 steps passed, 0 failed, 0 skipped, 0 undefined
Took 0m0.000s

I am using python and behave, Following is my directory structure for feature file :

features
    -steps
       -Login
          -loginSteps.py 
          -__init__.py
    -featurefile.feature

In behave.ini , I have set : paths=features/steps

Upvotes: 0

Views: 764

Answers (1)

Manzanero
Manzanero

Reputation: 21

Subdirectories cannot be placed in steps folder.

you can use:

features
    -steps
       -loginSteps.py 
    -featurefile.feature

or

features
    -steps
       -__init__.py
       -login
          -loginSteps.py
    -featurefile.feature

where

# features/steps/__init__.py
from features.steps.login import loginSteps

Upvotes: 2

Related Questions