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

Introduce "Runnable Recipe" resolver #5890

Closed clebergnu closed 3 months ago

clebergnu commented 3 months ago

Avocado uses a Runnable to describe what is to be executed (usually a test) in a given Task. Runnables (and Tasks) can be defined in JSON files, which are called Recipes (see the examples/nrunner/recipes directory).

These can be loaded and executed with a command such as:

avocado-runner-exec-test runnable-run-recipe \ examples/nrunner/recipes/runnables/exec_test_echo_no_newline.json

It may also be useful to run them with an Avocado job. To do that, a "runnable-recipe" resolver is being introduced, which can read from these JSON files and create runtime runnables (which will be added to a job, a suite and turned into a runtime task).