-
Notifications
You must be signed in to change notification settings - Fork 344
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
introduce gauge_data_dir #2047
introduce gauge_data_dir #2047
Conversation
allow csv/txt data files to be in subdirectory, configured by gauge_data_dir fixes #2046 Signed-off-by: sriv <srikanth.ddit@gmail.com>
@sriv Thank you for contributing to gauge. Your pull request has been labeled as a release candidate 🎉🎉. Merging this PR will trigger a release. Please bump up the version as part of this PR.Instructions to bump the version can found at CONTRIBUTING.md If the CONTRIBUTING.md file does not exist or does not include instructions about bumping up the version, please looks previous commits in git history to see what changes need to be done. |
Try running this build against this sample: 2046_sample_env_specific_data.zip BuildsWindows - https://github.com/getgauge/gauge/suites/3249853447/artifacts/75514143 |
I tried out the sample project and the build 1.3.3. Couple of points that I noticed while playing around with this.
Other than that, things look good. This will solve a lot of our problems. When do you expect to have this feature released? Now, if you can just add the
|
Thank you for the feedback. To answer your points:
Yes, I'll add that in. I think this is best printed in
Absolutely, this is a good point. I'll add this information in the error message.
True. The properties files are split just to help organize better. You could have them all in a single file and gauge will still pick all the values. As with other properties, you can also set this as an env variable.
Most likely immediately after I have this PR reviewed, though there are a couple of other things that I'd liked to be included.
This feature already exists! Although it is labeled as an experimental feature (mostly because the reporting around this is to be implemented). See https://docs.gauge.org/writing-specifications.html#table-driven-scenario Edit - I realize you've asked for |
@sriv Thanks for taking my feedback. I appreciate it. :) Yes, the documentation currently states that CSV files or Table notation is not supported on the Scenario level. I would really like to be able to add different types of tests related to the same feature in one Test Specification.
This is currently not possible if you have one CSV at the Specification level. Thanks |
Yes, that should be a separate feature request. TBH, I haven't assessed the magnitude of this change. Please do create an issue, so that we do not lose this discussion. |
…correct gauge_data_dir Signed-off-by: sriv <srikanth.ddit@gmail.com>
Signed-off-by: sriv <srikanth.ddit@gmail.com>
fixed some tests/code lint Signed-off-by: sriv <srikanth.ddit@gmail.com>
Co-authored-by: Zabil Cheriya Maliackal <zabil@users.noreply.github.com> Signed-off-by: sriv <srikanth.ddit@gmail.com>
db03efd
to
5662b07
Compare
removed 'RC' label. This will be clubbed with #2057 in a single release. |
* introduce gauge_data_dir allow csv/txt data files to be in subdirectory, configured by gauge_data_dir fixes #2046 Signed-off-by: sriv <srikanth.ddit@gmail.com> * print debug when loading from gauge_data_dir, warning when setting incorrect gauge_data_dir Signed-off-by: sriv <srikanth.ddit@gmail.com> * better error message when table is not resolved from gauge_data_dir Signed-off-by: sriv <srikanth.ddit@gmail.com> * add tests for gauge_data_dir resolution fixed some tests/code lint Signed-off-by: sriv <srikanth.ddit@gmail.com> * Update util/fileUtils.go Co-authored-by: Zabil Cheriya Maliackal <zabil@users.noreply.github.com> Signed-off-by: sriv <srikanth.ddit@gmail.com> Co-authored-by: Zabil Cheriya Maliackal <zabil@users.noreply.github.com>
* allow custom environment directory, fixes #2025 Signed-off-by: sriv <srikanth.ddit@gmail.com> * bump version -> 1.4.0 Signed-off-by: sriv <srikanth.ddit@gmail.com> * introduce gauge_data_dir (#2047) * introduce gauge_data_dir allow csv/txt data files to be in subdirectory, configured by gauge_data_dir fixes #2046 Signed-off-by: sriv <srikanth.ddit@gmail.com> * print debug when loading from gauge_data_dir, warning when setting incorrect gauge_data_dir Signed-off-by: sriv <srikanth.ddit@gmail.com> * better error message when table is not resolved from gauge_data_dir Signed-off-by: sriv <srikanth.ddit@gmail.com> * add tests for gauge_data_dir resolution fixed some tests/code lint Signed-off-by: sriv <srikanth.ddit@gmail.com> * Update util/fileUtils.go Co-authored-by: Zabil Cheriya Maliackal <zabil@users.noreply.github.com> Signed-off-by: sriv <srikanth.ddit@gmail.com> Co-authored-by: Zabil Cheriya Maliackal <zabil@users.noreply.github.com> * allow custom environment directory, fixes #2025 Signed-off-by: sriv <srikanth.ddit@gmail.com> * fix merge Signed-off-by: sriv <srikanth.ddit@gmail.com> Co-authored-by: Zabil Cheriya Maliackal <zabil@users.noreply.github.com>
allow csv/txt data files to be in subdirectory, configured by gauge_data_dir
fixes #2046
Signed-off-by: sriv srikanth.ddit@gmail.com