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

Call dynamic variables through 2 test files. #1378

Open
sushmithakongi opened this issue Mar 29, 2024 · 1 comment
Open

Call dynamic variables through 2 test files. #1378

sushmithakongi opened this issue Mar 29, 2024 · 1 comment

Comments

@sushmithakongi
Copy link

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.

@onsi
Copy link
Owner

onsi commented Mar 29, 2024

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/

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

No branches or pull requests

2 participants