Skip to content

Commit

Permalink
Add Gherkin page to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ASBrouwers committed Jun 28, 2022
1 parent 5897eb7 commit c5f06cd
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/_data/sidebars/pmd_sidebar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,9 @@ entries:
- title: HTML
url: /pmd_languages_html.html
output: web, pdf
- title: Gherkin
url: /pmd_languages_gherkin.html
output: web, pdf
- title: Developer Documentation
output: web, pdf
folderitems:
Expand Down
15 changes: 15 additions & 0 deletions docs/pages/pmd/languages/gherkin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
title: Gherkin
permalink: pmd_languages_gherkin.html
---

The [Gherkin](https://cucumber.io/docs/gherkin/) language is used to define test cases for the [Cucumber](https://cucumber.io/) testing tool for behavior-driven development. The Gherkin syntax is designed to be
non-technical, making it human-readable for a wide audience.

## Support in PMD
Starting from version 6.48.0, Gherkin support was added to CPD.

### Limitations
- Support for Gherkin only extends to CPD to detect code duplication in Cucumber test cases.
- While Gherkin keywords have been translated into various
languages, CPD currently supports only the English version of the Gherkin language.

0 comments on commit c5f06cd

Please sign in to comment.