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

The Generated files should be in the implementation folder #155

Closed
sswaroopgupta opened this issue Feb 28, 2018 · 2 comments
Closed

The Generated files should be in the implementation folder #155

sswaroopgupta opened this issue Feb 28, 2018 · 2 comments
Labels

Comments

@sswaroopgupta
Copy link
Contributor

sswaroopgupta commented Feb 28, 2018

Actual behavior
The generated file is in the specs folder.

Steps to replicate

  • Generate a stub for an unimplemented step. Choose New File.

This file is created in the specs folder.

Version

Gauge version: 0.9.8.nightly-2018-02-26
Commit Hash: 77c642d

Plugins
-------
dotnet (0.0.1.nightly-2018-02-14)
html-report (4.0.4.nightly-2018-01-11)
java (0.6.7.nightly-2018-02-23)
js (2.1.1.nightly-2018-02-27)
python (0.2.4.nightly-2018-02-27)
ruby (0.4.3.nightly-2018-02-13)
screenshot (0.0.1)
spectacle (0.1.3.nightly-2017-10-26)

Bug on story #119

@BugDiver
Copy link
Member

BugDiver commented Mar 6, 2018

While creating the new file, instead of creating an Untitled documentation figure out a file name and write that file in defaults implementation dir with implementation stub.
file names should follow runner specific conventions
Ex:

  • js - step-implementation.js
  • python - step_implementation.py
  • Ruby - step_implementation.rb

If default filename already exists add an incremented numeric prefix
Ex:

  • js - step-implementation-1.js if step-implementation.js exists
  • python - step_implementation_1.py if step_implementation.py exists

@BugDiver
Copy link
Member

BugDiver commented Mar 7, 2018

The fix should be available in following nightlies -

Name Nighly Date
gauge-vscode 07-03-2018
gauge-js 07-03-2018
gauge-python 07-03-2018
gauge-ruby 07-03-2018

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

2 participants