-
Notifications
You must be signed in to change notification settings - Fork 221
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
Implement localisation support #725
Conversation
@jsa34 mind reviewing this too? |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #725 +/- ##
==========================================
+ Coverage 95.63% 95.64% +0.01%
==========================================
Files 54 54
Lines 2083 2091 +8
Branches 231 230 -1
==========================================
+ Hits 1992 2000 +8
Misses 55 55
Partials 36 36 ☔ View full report in Codecov by Sentry. |
There are some places where keywords are hardcoded, but I needed to resolve these for #727. This PR should fix this issue so that the gherkin terminal reporter and cucumber json out is using the desired keywords from the feature file, rather than assuming |
We should include the language in the cucumber json output. https://github.com/cucumber/compatibility-kit/blob/main/devkit/samples/minimal/minimal.feature This is example of a minimal out that is cucumber-spec-compliant, and as no language is specified, it defaults to "en" in this example, but obviously we should pass the value coming from the gherkin parser. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comments in the PR
Also resolves #179 |
I also forgot an example and change log entry: it would be helpful to demonstrate how to specify the language in the feature file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is another type to map: Conjunction (And, But and *)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know, but that's just a "tokenizer" type, not a semantic one, that's why I didn't include it here
Do you know if there is a specification somewhere for Cucumber JSON output? |
yes I forgot indeed, added in 342cf5e |
Messages/JSON: and legacy JSON: |
I think the parser test needs simplifying otherwise it will be a maintenance nightmare. |
Agree, but I think that once gherkin-official v30.0.0 is released, we can remove most of the classes in Can you check this again? |
All good to me now :) |
Fixes #397
Supersedes #345
Checklist:
keyword
and check if we need to replace them withkeyword_type