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

Gauge will not find steps when steps are in multiple directories #134

Closed
jensakejohansson opened this issue Jan 28, 2019 · 3 comments
Closed
Assignees
Labels

Comments

@jensakejohansson
Copy link

Description

I cannot get the setup of having step implementions in more than one directory to work.

Steps to reproduce

I'm setting up my env/python.properties file according to documentation as this:

GAUGE_PYTHON_COMMAND = python3

\# Comma seperated list of dirs. path should be relative to project root.

STEP_IMPL_DIR = step_impl,fwk/web

Expecting Gauge to look in both these directories relative to project folder for steps, but when running I get this:

"can not load implementations from c:\project_path\step_impl,fwk/web. c:\project_path\step_impl,fwk/web.  does not exist."

Looks like Gauge does not parse the settings correctly or I'm I missing something obvious? I've tried a few different combinations, but Gauge doesn't seem to register the 'comma-separator' and is treating the whole line as a single path.

Information that will help us debug

  • Gauge version: 1.0.3
  • Gauge Python plugin version 0.3.5.nightly-2018-12-31
  • Python version: 3.7.2
  • OS information: Windows 10
@NivedhaSenthil
Copy link
Member

@jensakejohansson currently gauge-python does not support multiple step implementation directories, we will be adding the support

NivedhaSenthil added a commit that referenced this issue Jan 30, 2019
NivedhaSenthil added a commit that referenced this issue Jan 30, 2019
- update env variable string parsing
- continue loading files even if some directories are incorrect
- add test for default logic
NivedhaSenthil added a commit that referenced this issue Feb 1, 2019
#134 Add support for multiple step implementation directories
@gaugebot
Copy link

gaugebot bot commented Feb 1, 2019

The fix should be available in nightly >= 1-2-2019

@Debashis9012
Copy link
Contributor

Tested the above steps, its working as excepted in both Windows and max os.

Version

Gauge version: 1.0.5.nightly-2019-02-08
Commit Hash: 6971850

Plugins
-------

html-report (4.0.8.nightly-2019-02-
js (2.3.4.nightly-2019-01-15)
python (0.3.5.nightly-2019-02-04)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

5 participants