darshan-hpc / darshan

Darshan I/O characterization tool
Other
56 stars 27 forks source link

TST: using conftest.py to abstract pytest fixtures #411

Open tylerjereddy opened 3 years ago

tylerjereddy commented 3 years ago

@nawtrey was interested in this potential addition--just keeps some common fixtures in a root test location to reduce duplication in the test suite--similar to description here: https://stackoverflow.com/a/34520971/2942522

One drawback is that if the fixtures are only used in one or two testing modules instead of most/all of them we may wish to localize the test modules and conftest.py in a subdirectory for scoped fixture usage/avoid wasted intializations for tests that don't need them.

tylerjereddy commented 3 years ago

(in other words, we can have both a root conftest.py and also more localized subdirectory conftest.py modules as needed)