ginkgo icon indicating copy to clipboard operation
ginkgo copied to clipboard

Call dynamic variables through 2 test files.

Open sushmithakongi opened this issue 10 months ago • 1 comments

I have 2 test files to run and one has apis related to create and list related apis, and the other file has run apis. So when i do ginkgo test, i need to pass the variable holding the created ids from create api of one file to run api in another file. Hence i would run the ids which i created while testing.

sushmithakongi avatar Mar 29 '24 16:03 sushmithakongi

hey - you cannot structure tests in this way. Ginkgo tests are independent so they can run in parallel and/or random order. This is documented extensively in the docs: https://onsi.github.io/ginkgo/

onsi avatar Mar 29 '24 19:03 onsi