I'm using pytest to test my package and I'm facing problems with dependency of tests, cause pytest is collecting (and testing) the sequence in alphabetical order, while it should be in dependency order. How can I change it?
More details:
The sequence of test it should runis:
materials: Needs nothingonerodtraction,onerodtorsion,onerodbending: Needs (1)onerodallcharges: Needs the three above (2)examples: Needs the (3)
When I run I receive:
tests\test_examples.py ssssssssssss [ 22%]
tests\test_material.py ... [ 27%]
tests\test_onerodallcharges.py sss [ 33%]
tests\test_onerodbending.py .................. [ 66%]
tests\test_onerodtorsion.py ......... [ 83%]
tests\test_onerodtraction.py ......... [100%]
As we see, every test in the third file is skipped, and then the same happens for the first file.