Skip to content

--order-group-scope for test which located in different folder #8

Closed
@veenone

Description

@veenone

Hi,

I would like to know whether it's possible to make orders for the following the structure :

\src

  • \test
    • \01_feature_1
      • test_feature_a.py
        • test_id_01 ---> order(1)
        • test_id_02 ---> order(2)
      • test_another_feature_a.py
        • test_id_03 ---> order(3)
        • test_id_04 ---> order(4)
    • \02_feature_2
      • test_feature_b.py
        • test_id_01 ---> order(1)
        • test_id_02 ---> order(2)
      • test_another_feature_b.py
        • test_id_03 ---> order(3)
        • test_id_04 ---> order(4)
    • \03_feature_3
      • test_feature_c.py
        • test_id_01 ---> order(1)
        • test_id_02 ---> order(2)
      • test_another_feature_c.py
        • test_id_03 ---> order(3)
        • test_id_04 ---> order(4)

I'm executing all pytest from the \test level.
how to have the execution ordered by folder, then by the ordering number from each folder?

currently I'm using --order-scope=module --order-group-scope=class, but it seems the ordering is still not following the exact order number in 1 folder

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions