Comments (8)
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.
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.
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.
@esdoppio which flavour of Cucumber are you using?
from common.
@mattwynne It's cucumber-ruby.
from common.
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.
I'm closing this issue since it's in the wrong repo.
from common.
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)
- Need help/information : Need information w.r.t HTML report while executing the test from JENKINS HOT 1
- nuget.org API expired for Cucumber expressions
- Slack Unavailable HOT 4
- Use arguments in scenario outline to describe test name HOT 3
- Github is deprecating set-output commands HOT 3
- Grouping Scenarios in .feature Files Using Multiple 'Feature' Keywords HOT 5
- Incorrect status being reported for skipped, pending, failed steps v16.0.3 HOT 7
- Tools page sidebar in when scroll the menu line should not overlap on text. HOT 1
- [Gherkin language feature support] Gherkin can support StepMacros syntax? HOT 5
- how to run prallel all the scenario outline methods with Examples but the test data are in the excel file HOT 1
- Add prettier plugin support for Gherkin HOT 2
- Cucumber html report screen is blur and couldn't able to access the report HOT 1
- Support for triggering/transforming parameterTypes in data table HOT 2
- allow more steps to execute after step failure HOT 9
- How to get Feature File commented lines in Cucumber Json Test Report HOT 7
- We're currently locked out of our npm account HOT 3
- We don't have access to the [email protected] email address HOT 2
- [email protected] email address doesn't forward to the core team HOT 10
- DKIM etc headers for cucumber.community HOT 6
- Slack inviter is broken HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from common.