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

Create code based API #58

Closed
bkielbasa opened this issue Jan 21, 2020 · 3 comments
Closed

Create code based API #58

bkielbasa opened this issue Jan 21, 2020 · 3 comments
Labels

Comments

@bkielbasa
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
Using gherkin files can be just one of the options to write tests. There are people who don't like gherkin but are interested in BDD. What I can suggest is create an API where we'll have the same functionality as in Gherkin files but be able to create without them.

One of the drafts of the API can be:

scenario := gobdd.NewScenario("name of it", func(s gobdd.Scenario){
    s.AddFeature("some feature", func(f gobdd.Feature){
        f.AddStep("step 1", "", stepFunc)
    })
})

I'm opened for discussions and suggestions.

@bkielbasa bkielbasa added the enhancement New feature or request label Jan 21, 2020
@mirogta
Copy link
Collaborator

mirogta commented Feb 6, 2020

I'm hesitating to give this 👎 so it doesn't sound negative and any idea in this project at this stage is a good idea... but, we've moved to BDD with Cucumber and away from code based tests to get the full benefits of BDD/Cucumber and test cases in plain English and we can finally get rid of nested functions. To me this would sound like a step back, diluting focus, and competing with other libraries that use just this approach.

@bkielbasa
Copy link
Collaborator Author

Thanks for your feedback!
I'm suggesting it because there are some people who prefers such an approach. But I think I see your point.

@bkielbasa
Copy link
Collaborator Author

Closing due to no interest in this feature

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

No branches or pull requests

2 participants