taverntesting/tavern

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.

bharatidesai opened this issue · 3 comments

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.

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.

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