Replies: 1 comment 4 replies
-
Hi @marioaag the runnables for each test are determinate by resolvers and avocado runs different kinds of tests based on the information from resolvers. Avocado will decide which runnable will be used for each test. So you can run multiple types of tests just by running them like this: You will find more information in https://avocado-framework.readthedocs.io/en/latest/guides/contributor/chapters/runners.html#finding-tests For having bigger power over test execution you can use Avocado API, but with API you have to define everything by yourself. You can find usage in our selftest https://github.com/avocado-framework/avocado/blob/master/selftests/check.py Small example of setting runnable by Avocado API:
|
Beta Was this translation helpful? Give feedback.
-
Could anybody explain me or point me to an example of how to run multiple runnable at the same time?
I can see that if the switch --test-runner='nrunner' is used avocado execute all the test in parallel but in someway the executions get isolated and looks like there is no way to specify the runnable values like the kind or the args.
In the other hand if I directly do it with the Python API like this:
runnable = nrunner.Runnable('python-unittest', 'test') runner_klass = runnable.pick_runner_class() runner = runner_klass(runnable) results = [status for status in runner.run()]
What is needed to do to get multiple runnable running at the same time? is it possible to pass multiple runnable to the same runner?
Beta Was this translation helpful? Give feedback.
All reactions