question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for Gherkin / Gherkin Spec

See original GitHub issue

Although we have have BehaviorSpec, a big necessity that I’ve been observing in some projects that test Java/Kotlin code is using the CucumberRunner.

With tests written in Gherkin, a team can generate a powerful suite of tests that are read from a .feature file, in natural language, and then transform it into code.

However, the code written to be executed by CucumberRunner is quite Cucumbersome (~see what I did there riaria~), and it leads to easy to understand specification feature file, but often hard to understand executable code, and hard to setup too.

I propose we implement a Gherkin Spec, that would read from a configurable file and execute the scenario based on that .feature file.

If we believe this is a good feature, I’m glad to enhance this small feature request to a more robust suggestion.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
sksamuelcommented, Jan 14, 2019

Personally I think cucumber is total shit. The reason is when I was forced to use it about 5 years ago I had to create loads of text files, loads of annotations, and put together tests in a way that was 10x slower than just writing them in code properly.

The rationale - that “non techies” can read the tests. Well that’s nonsense - BA’s can’t write cucumber tests anymore than they can write scalatest.

If you want to come up with another spec, that’s elegant and read from a file, crack on, but I don’t want to see anything as bloated and crap as cucumber.

0reactions
LeoColmancommented, Jan 19, 2019

I think that with the additions from #562 BehaviorSpec got better, and there’s no longer a real need for something stronger that the BDD implemented there.

Because of this, I’ll be closing this issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

Gherkin Reference - Cucumber Documentation
Gherkin uses a set of special keywords to give structure and meaning to executable specifications. Each keyword is translated to many spoken languages; ......
Read more >
Add support for Gherkin / Gherkin Spec · Issue #561 - GitHub
I propose we implement a Gherkin Spec , that would read from a configurable file and execute the scenario based on that .feature...
Read more >
Gherkin Language: Format, Syntax & Gherkin Test in Cucumber
It is a domain specific language for defining tests in Cucumber format for specifications. It uses plain language to describe use cases and...
Read more >
Writing scenarios with Gherkin syntax - SmartBear Support
Step 1: Activate the BDD mode · Step 2: Create a feature · Step 3: Write a scenario with the Given/When/Then syntax ·...
Read more >
Getting started using Cucumber or other Gherkin-based BDD ...
SpecSync can synchronize any scenarios that are written in Gherkin format. ... For the supported Azure DevOps versions, please check the Compatibility list....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found