You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm exploring adding Gherkin support for kubernetes to separately define our behaviours/features from our tests.
We currently make heavy use of Ginkgo, and much of our infrastructure is based on it.
I'd like create a set of .features referencing our existing tests, while allowing us to make use of Feature:, Scenario:, and tagging via Gherkin. It would help projects like ours that already use ginkgo, but would like to benefit from separating BDD files from the implementations.
Feature: Use existing ginkgo framework
As a test contributor
I want to not throw away all our old tests
In order to retain the value generated in them
@ginko@k8s.io@Conformance@NodeConformanceScenario: Container Lifecycle Hook when create a pod with lifecycle hook should execute poststart exec hook properlyGiven existing test "[k8s.io] Container Lifecycle Hook when create a pod with lifecycle hook should execute poststart exec hook properly [NodeConformance] [Conformance]"When I run the test
Then the existing test will pass
And this is fine
@ginko@k8s.io@NodeConformanceScenario: Container Runtime blackbox test when running a container with a new image should be able to pull from private registry with secretGiven existing test "[k8s.io] Container Runtime blackbox test when running a container with a new image should be able to pull from private registry with secret [NodeConformance]"When I run the test
Then the existing test will pass
And this is fine
It's a bit of a cross-post, but I also opened an issue with gingko, to see if there is a way we can tie the frameworks together in this way. onsi/ginkgo#588
Hi, it is pleasant to see the adoption of cucumber in go user space. Now concerning the integration with ginkgo, as far as I can see, only two options pop up:
If it is possible to access ginkgo functions for single specific behavior description with all the context functions wrapped around it. Then calling it from a godog step definition might only require some tricks to determine the failure and return it as an error
If ginkgo provides cli options to invoke si gle scenario, godog step definition could call it with exec.Command though you may need to pass env vars in order to prevent booting something expensive all over in each of the step calls. Then slowly steps can be migrated.
If none of those options are reasonable, then probably you could consider godog for new packages only. Also maybe using too many testing frameworks in one project, might make it harder to cope with for contributors
I'm exploring adding Gherkin support for kubernetes to separately define our behaviours/features from our tests.
We currently make heavy use of Ginkgo, and much of our infrastructure is based on it.
I'd like create a set of .features referencing our existing tests, while allowing us to make use of
Feature:
,Scenario:
, andtagging
via Gherkin. It would help projects like ours that already use ginkgo, but would like to benefit from separating BDD files from the implementations.I'm exploring this via kubernetes/kubernetes#79914
The text was updated successfully, but these errors were encountered: