Skip to content

SEOS-2204: pytest-dependency 0.5.1 does not change test execution order #260

@FelixSchladt

Description

@FelixSchladt

pytest-dependency 0.5.1 does not change test execution order

pytest-dependency 0.5.1 does not change test order, instead test are simply skipped if the test marked as dependency has not run yet.

See also

Since this bug exists for almost 3 year now, to seem there is not interest to fix this. As an alternative, we could try ttps://github.com/ftobia/pytest-ordering

Created by

axel heider
Created: Sunday, January 24, 2021 08:24 PM UTC+01:00
Updated: Tuesday, March 19, 2024 04:48 PM UTC+01:00

Comments

axel heider

I have removed the dependency marker ins the network test now. Other pytest file may also need an update

created: Tuesday, January 26, 2021 11:47 AM UTC+01:00
updated: Tuesday, January 26, 2021 11:47 AM UTC+01:00

axel heider

https://github.com/pytest-dev/pytest-order support dependencies now, maybe we should have a look at it.

created: Thursday, March 04, 2021 08:43 PM UTC+01:00
updated: Thursday, March 04, 2021 08:43 PM UTC+01:00

axel heider

Following the discussion of GitHub, it seems that developers of pytest-dependency don't plan to support re-ordering the tests - even is user seem to expect this functionality. Using https://gitlab.com/MaienM/pytest-depends could be evaluated as an alternative.

created: Friday, May 07, 2021 01:23 AM UTC+02:00
updated: Friday, May 07, 2021 01:24 AM UTC+02:00

axel heider

As stated in [https://github.com/RKrahl/pytest-dependency/pull/44] the plugin {{pytest-dependency}} does no directly support ordering, but when this is needed it must be used with {{pytest-order}} and setting {{--order-dependencies}} . See also [https://pytest-dev.github.io/pytest-order/stable/configuration.html#order-dependencies]

created: Sunday, January 09, 2022 05:56 PM UTC+01:00
updated: Sunday, January 09, 2022 05:56 PM UTC+01:00

Subtasks

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions