avocado-framework / avocado

Avocado is a set of tools and libraries to help with automated testing. One can call it a test framework with benefits. Native tests are written in Python and they follow the unittest pattern, but any executable can serve as a test.
https://avocado-framework.github.io/
Other
336 stars 335 forks source link

Suite dependency #5896

Closed richtja closed 2 months ago

richtja commented 3 months ago

This PR introduces job dependency feature. With this feature, you can define common dependency for each test inside job or with Job API inside suite. With this feature, it should be easier to create tests which share their dependencies.

It reads all the dependencies from the json file, where the user can specify all the dependencies needed for this job. It uses the same json format as is used in test docstrings. Part of this commit is a documentation update which describes this feature more deeply.

Reference: https://github.com/avocado-framework/avocado/issues/5504 Signed-off-by: Jan Richter jarichte@redhat.com

richtja commented 2 months ago

Hi @clebergnu thank you for your review, and thank you for investigating the duplicity issue. I did a force-push without the last commit and create #5904 to track the duplicity issue.

richtja commented 2 months ago

Hi @clebergnu, I have updated this after merge of #5905, please have a look.