[Avocado-devel] Requesting support for pytest in avocado framework

Cleber Rosa crosa at redhat.com
Wed Jul 14 17:01:10 UTC 2021


Sunita Verma (sunitav) writes:

> Micron Confidential
>
> Hello Avocado team,
>
>

Hi Sunita!

>
> We are using pytest to test our huge codebase and we are intending to use avocado+jenkins based system to do regression
> testing.
>

Good to hear that Avocado is in your plans.  Would you be able to share
the exact use case?  I'm specially interested in the Avocado features
you believe will be helping the most with your setup.

> It is difficult to rewrite all pytests to unittest or avocado Test. 
>

They have some conceptual differences indeed, and that can add a lot to
the rewrite challenge.

> Could you please add support for pytest in avocado framework? Or do you have any plugin that we can use?
>
>

We keep the development plans in our GitHub issues page[1], along with a
Kanban board[2].  That means you can start by opening an issue, and
providing as much information as possible.  From that point, the team
will consider the importance and impact of the feature.  Usually an
issue will move it from Long Term Backlog -> Short Term Backlog -> In
progress -> Done.

Of course, Avocado is a community project, so actual contributions for
such features are the best way to see a feature developed as soon as
possible.

In the topic of supporting new test types on Avocado, I recommend you
look at our plugin documentation[3].

BTW, I'm not aware of a ready to use plugin to run pytest tests under
Avocado at this time.  One general solution is to treat each "pytest
$test_name" invocation as a test, but that is not an optimal solution.

Best,
- Cleber.

>
> Thanks & Regards
>
> Sunita
>
>  
>
> Micron Confidential

[1] - https://github.com/avocado-framework/avocado/issues
[2] - https://github.com/avocado-framework/avocado/projects/1
[3] - https://avocado-framework.readthedocs.io/en/89.0/guides/contributor/chapters/plugins.html#new-test-type-plugin-example

-- 
Cleber Rosa
[ Sr Software Engineer - Virtualization Team - Red Hat ]
[ Avocado Test Framework - avocado-framework.github.io ]
[  7ABB 96EB 8B46 B94D 5E0F  E9BB 657E 8D33 A5F2 09F3  ]




More information about the Avocado-devel mailing list