Skip to content

Commit d7b5453

Browse files
Update Cucumber FAQ (#5115)
1 parent 6532565 commit d7b5453

File tree

1 file changed

+24
-9
lines changed

1 file changed

+24
-9
lines changed

docs/faq/questions/using-cypress-faq.mdx

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,17 +1101,32 @@ more information, please check
11011101

11021102
## <Icon name="angle-right" /> Can I use Cucumber to write tests?
11031103

1104-
Yes, you can. You can write feature files containing Cucumber scenarios and then
1105-
use Cypress to write your step definitions in your spec files. A special
1106-
preprocessor then converts the scenarios and step definitions into "regular"
1107-
JavaScript Cypress tests.
1108-
1109-
- try using the
1110-
[Cucumber preprocessor](https://github.com/badeball/cypress-cucumber-preprocessor)
1111-
and search our [Plugins](/plugins) page for additional helper plugins
1104+
Yes, you can.
1105+
1106+
While Cypress does not provide official support for Cucumber, you can use
1107+
Cucumber through a
1108+
[community plugin](https://github.com/badeball/cypress-cucumber-preprocessor).
1109+
Using the plugin adds additional complexity to your testing workflow, so ensure
1110+
your team understands the benefits and drawbacks before adopting Cucumber.
1111+
11121112
- read
11131113
[Cypress Super-patterns: How to elevate the quality of your test suite](https://dev.to/wescopeland/cypress-super-patterns-how-to-elevate-the-quality-of-your-test-suite-1lcf)
1114-
for best practices when writing Cucumber tests
1114+
for best practices when writing Cucumber tests.
1115+
- To get started, read
1116+
[How to use Cypress with Cucumber BDD](https://testersdock.com/cypress-cucumber-bdd/)
1117+
for step-by-step instructions for v9 and v10, or for instructions in v10 with
1118+
typescript read
1119+
[Cucumber in Cypress: A step by step guide](https://filiphric.com/cucumber-in-cypress-a-step-by-step-guide).
1120+
1121+
If your team is looking to do behavior-driven development using BDD's
1122+
given/when/then syntax directly in Cypress instead of using Cucumber's
1123+
scenarios, you might be interested in these articles:
1124+
1125+
- read
1126+
[Using the keywords Given/When/Then with Cypress but without Cucumber](https://dev.to/walmyrlimaesilv/using-the-keywords-given-when-then-with-cypress-but-without-cucumber-118p)
1127+
and
1128+
[BDD without Cucumber](https://filiphric.com/how-to-structure-a-big-project-in-cypress#bdd-without-cucumber)
1129+
for recommendations for writing tests without using Cucumber
11151130

11161131
## <Icon name="angle-right" /> Can I test Next.js sites using Cypress?
11171132

0 commit comments

Comments
 (0)