Code Monkey home page Code Monkey logo

Comments (8)

aslakhellesoy avatar aslakhellesoy commented on July 21, 2024

Hi @esdoppio

There isn't currently a way to specify a language globally, but I really like your idea. It sounds like the lack of this feature really bothers you.

Don't worry - Cucumber is open source, so you can fix this yourself. Just fork the repo, add support for a new --language LANGUAGE option (with tests) and send us a pull request. We'll do our best to help you if you're stuck, and if your contribution is good we might add this in the next release!

Thanks!

from common.

hediyi avatar hediyi commented on July 21, 2024

Thanks for the reply.

If we're really going this direction, I think the --language option should affects only the feature files that doesn't explicitly specify a spoken language, allowing a project to have tests written in different languages, which is rare, but it doesn't affect users who don't need that complexity.

Do you think this is over-designed? And what do you think of the idea of a configuration file (for cucumber)? @aslakhellesoy

from common.

aslakhellesoy avatar aslakhellesoy commented on July 21, 2024

I agree that a # language header in a file should override whatever was specified with --language.

Cucumber already has a configuration file - cucumber.yml.

Luckily Gherkin already supports specifying a default language - it's just a matter of hooking into it. See cucumber/gherkin#78

from common.

mattwynne avatar mattwynne commented on July 21, 2024

@esdoppio which flavour of Cucumber are you using?

from common.

hediyi avatar hediyi commented on July 21, 2024

@mattwynne It's cucumber-ruby.

from common.

mattwynne avatar mattwynne commented on July 21, 2024

OK, in that case let's start with an issue over there: https://github.com/cucumber/cucumber-ruby/issues

Can you raise one, and do your best to describe your acceptance criteria? The very best thing would be if you could create a PR with a new failing feature in https://github.com/cucumber/cucumber-ruby/tree/master/features/docs/cli

from common.

aslakhellesoy avatar aslakhellesoy commented on July 21, 2024

I'm closing this issue since it's in the wrong repo.

from common.

lock avatar lock commented on July 21, 2024

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

from common.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.