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

Tavern test in 2 separate yaml files, first one containing several stages common to many specific stages in 2nd file; be able to use saved variables from the first file. #807

Open
bharatidesai opened this issue Sep 30, 2022 · 3 comments

Comments

@bharatidesai
Copy link

Chaining stages in 2 separate files, for example:
test_setup.tavern.yaml - to be used by many other tests in different/separate yaml files, saves some variables
test_execution.tavern.yaml - depends on test_setup.tavern.yaml to be executed first, and be able to use the saved
variables in test_setup.tavern.yaml

Read about reusable code, but would like to have more stages in the reusable file, that is included.

@michaelboulton
Copy link
Member

You can't 'chain' stages in 2 separate files, you would have to put those stages in a configuration file and then include those stages into every test which requires those stages.

@bharatidesai
Copy link
Author

bharatidesai commented Oct 3, 2022 via email

@michaelboulton
Copy link
Member

You can put multiple stages in a configuration file, it sounds like you want to put all 20 stages into a configuration file, and they will need separate IDs.

Chaining stages in different files was never supported

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