-
-
Notifications
You must be signed in to change notification settings - Fork 22
Schema: fix test case comments #252
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
Schema: fix test case comments #252
Conversation
A description of the TestStep's StepDefinitionIds was mistakenly placed as comment on the StepMatchArgumentsList. This commit fixes that by moving the comment up to the StepDefinitionIds field.
|
@clrudolphi build is failing. You should run the code generator for all languages. |
Is the premise of the PR correct (that the comment was attributed to the wrong property)? |
Pardon my ignorance, but it appears to me from looking at the log that the build did regenerate for all languages. The step of the build that is reporting the failure seems to be doing a diff against a prior run and finding the differences in the comments and flagging that as a failure. Do certain languages maintain a 'golden' copy of generated code that all subsequent builds must match? How would I go about updating that? |
|
No problems. Have a look at CONTRIBUTING.md. For most projects that is where we keep the "how to" information (and if we not, feel free to reorganize a bit). As with Gherkin, for messages too we want to limit the dependencies involved in code generation. So for example building Python should not depend on ruby. And generating the code should not depend on python. To solve that problem all generated code is checked in. Then to ensure the code is generated consistently, CI reruns the code generation and checks for differences. |
Yes. Looks like it is correct to me. |
Running make clean-all generate-all on my machine fails. It seems one needs Go installed for the generation to work for the Go lang. I don't have the time or expertise to have all of these language SDKs installed. |
|
I thought I removed the dependency on go. I'll check tomorrow. |
The go Makefile has this section still in it: require: ## Check requirements for the code generation (ruby and go are required)
@ruby --version >/dev/null 2>&1 || (echo "ERROR: ruby is required."; exit 1)
@go version >/dev/null 2>&1 || (echo "ERROR: go is required."; exit 1)
|
|
Ah yeah. That will do it. |
|
Cheers! Thanks for spotting this! |
🤔 What's changed?
The description comments in the schema for a TestStep's StepDefinitionIds was mistakenly placed on the neighboring StepMatchArgumentsList field. This PR moves that text to the description field of the StepDefinitionIds field.
⚡️ What's your motivation?
Avoid confusion when reading the code.
🏷️ What kind of change is this?
♻️ Anything particular you want feedback on?
📋 Checklist:
This text was originally generated from a template, then edited by hand. You can modify the template here.