jimasp / behave-vsc

A vscode extension that provides a test runner/debugger and navigation for Python behave tests
https://marketplace.visualstudio.com/items?itemName=jimasp.behave-vsc
Other
15 stars 3 forks source link

recursive parsing from import file #53

Open Kellyyys opened 2 months ago

Kellyyys commented 2 months ago

Is your feature request related to a problem? Please describe. When there is a step file that has only one import line, the step parser just ignore the line and move to other files. However, if we have a file that is imported from other file in other repo, the regex in that file will not be thrown into the parser so that the autocomplete and eror step check does not evolve these steps.

Describe the solution you'd like If there is a step file in current repo has only one line import import other_repo.feature.steps.other_step.py. Then any step regex from other_repo.feature.steps.other_step.py should be parsed.

Additional context Currently working on modifying code to accomplish this.

jimasp commented 2 weeks ago

The extension will only parse steps that are within your workspace folder. It pays no attention to the concept of repos or import directives (it does not interpret Python). If you're not on Windows, a quick solution would seem to be to create a symbolic link folder within your features/steps folder pointing at your external folder.