-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
update profile configuration file #751
Comments
@jbpros @mattwynne bump |
Hi @charlierudolph sorry I missed this the first time for some reason. What I would truly ❤️ would be a one-size-fits all declarative |
Should nest the profile info under a |
@mattwynne @charlierudolph I started creating set of add-ons for Cucumber.js called cucumber-extra and one of the tools generates the |
Let's pick this up again. See #1711 (comment) for some recent details. I'd love to have a JavaScript implementation of config for this! ( |
@aslakhellesoy sounds good, I'll try and do this in conjunction with #1711. I think it would make sense to keep this new thing separate from the existing On the naming of the files, what do we think about the unix-esque convention used by mocha, eslint etc:
|
Looking at this now as part of #1711, one thing I'd like to review about how config works today with the CLI and Profiles is the additive nature of it. In other words, if you have a config file like: // cucumber.js
module.exports = {
default: 'my/features/dir/*.feature'
} And then run: $ npx cucumber-js my/features/dir/specific-thing.feature It will concatenate the arguments rather than override. In this specific case, it's a problem because it stops you from narrowing the sources. With other things like formats, it's sometimes a strength - your default config can define a bunch of formatters, but you can specify others as needed via the CLI and/or other profiles. You can also invoke multiple profiles, and it all kind of gets layered on. Some things we could do:
|
Current
cucumber.js
fileSuggested update new
cucumber.yml
file (using references)@jbpros thoughts? We originally went with
.js
in order to avoid the clash with ruby'scucumber.yml
but I don't see think thats as an issue. Aside from this project when I first joined, I've never seen a project that used bothcucumber-ruby
andcucumber-js
. Nor can I think of a valid reason to do so.@mattwynne you as well as you may be able to get rid of the erb support.
Mainly would like to allow users to not have put actual CLI options in here. The options mirror the long form of the CLI options but without the need of actually specifying them with all the
--
. Implementation wise you can still convert these to cli options pretty easily (on the javascript side the there is a javascript library for doing that: dargs.The text was updated successfully, but these errors were encountered: