Skip to content

Ordering with multiple files #25

@naggappan

Description

@naggappan

Use case:

  • creaet a test file "test_example1.py"
  • Mark order from 1 to 5 for different test_methods
  • Now create another test file "test_example2.py"
  • Mark order from 1 to 5 for different test_methods
  • py.test executes order 1 from both the files first even the test_method names are diffrent
  • And it goes in similar pattern, executing order=1 in all files then goes to order=2 in all files etc.

It becomes very difficutl when we have more than 100 test case , If any one test case is added in single file we need to change the order number in all test case files.
More info in "http://stackoverflow.com/questions/35909656/pytest-ordered-plugin-doesnt-work-with-combination-of-multiple-files"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions