-
Notifications
You must be signed in to change notification settings - Fork 623
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
Add support for Gherkin / Gherkin Spec #561
Comments
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. |
I don't really like cucumber either, but some people think that it's the best approach to BDD. Maybe instead of implementing a full gherkin spec, we could add keywords for the For instance,
|
Are you just trying to turn KotlinTest into Spek :) Personally I'm a no, I think it's a limited use syntax and we already have a lot of specs that there should be a good case for another. But if you feel really strongly about it... |
God, no. I feel strong about it because Cucumber is used A LOT, and a lot of people are very familiar with it. My suggestion is to bring these people here to write good code instead of writing it in the clunky way cucumber does. I really dislike cucumber, but the idea of writing a test without caring about the implementation is really good for quality assurance and black box testing. I want a way to support this kind of testing, and I have no idea other than cucumber/gherkin. We may keep this on hold for now and focus on all the other enhancements that we have planned, but this kind of testing is very good, just poorly executed, IMO |
What's wrong with someone creating a jira with acceptance criteria in it? In my experience too much process is overengineering. But surely BA's et al, can work out a string spec? It's pretty simple. |
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 |
Although we have have
BehaviorSpec
, a big necessity that I've been observing in some projects that test Java/Kotlin code is using theCucumberRunner
.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 specificationfeature 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.
The text was updated successfully, but these errors were encountered: