Skip to content
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

replace package 'gherkin' with '@cucumber/gherkin' #276

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jonhamm
Copy link

@jonhamm jonhamm commented Sep 8, 2022

Rationale:

npm WARN deprecated cucumber-messages@8.0.0: This package is now published under @cucumber/messages npm WARN deprecated gherkin@9.0.0: This package is now published under @cucumber/gherkin

Derived changes:

The rule no-partially-commented-tag-lines is deleted as the new parser will remove the partial comments from taglines and hence they pose no problem and it is not possible to see these comments in the parsed output

Delete test that tests that multiple errors can be reported on same feature file, but it turns out that the new parser does not report errors that make it possible to distinguish this case as previous. The test is not required because it is not required that multiple errors are reported, we only need to ensure that all errors are eventually reported, and other tests will do this.

@jonhamm jonhamm force-pushed the update-deprecated-cucumber-and-gherkin-packages branch 2 times, most recently from ceede4a to 3184198 Compare September 8, 2022 05:30
Rationale:
npm WARN deprecated cucumber-messages@8.0.0: This package is now published under @cucumber/messages
npm WARN deprecated gherkin@9.0.0: This package is now published under @cucumber/gherkin

The rule no-partially-commented-tag-lines is deleted
as the new parser will remove the partial comments from taglines
and hence they pose no problem and it is not possible to see
these comments in the parsed output

Delete test that tests that multiple errors can be reported on same feature
file, but it turns out that the new parser does not report errors that
make it possible to distinguish this case as previous.
The test is not required because it is not required that multiple errors
are reported, we only need to ensure that all errors are eventually
reported, and other tests will do this.
@andrewnicols
Copy link
Member

Hi @jonhamm ,

Regarding the removal of the no-partially-commented-tag-lines rule, can you provide a source for this?

My concern here is that whilst cucumber/cucumber-js may have updated their parser to support this, not all parsers will have done so. People use this tooling to lint cucumber and gherkin files which are tested in other languages too.

@andrewnicols
Copy link
Member

It looks like bumping to the latest version also breaks other changes because the parser has chnaged fairly significantly in the past few years. This may need a bit of work to handle some of the new warnings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants