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

Runnable (and thus Task) identifiers explicitly set (instead of through identifier formats) #5964

Open clebergnu opened 2 weeks ago

clebergnu commented 2 weeks ago

Is your feature request related to a problem? Please describe. The identifier of runnables (and thus tasks) currently from the runner.identifier_format configuration. While it's possible to do something like:

{"kind": "exec-test", "uri": "something", "config": {"runner.identifier_format": "LITERAL IDENTIFIER"}}

It's cryptic and awkward.

Describe the solution you'd like The addition of a shortcut that would allow runnables to have an explicit identifier as a first class attribute. Example for recipe(s) JSON:

{"kind": "exec-test", "uri": "something", "id": "LITERAL IDENTIFIER"}

Or from the API:

Runnable("exec-test", "something", identifier="LITERAL IDENTIFIER")