Hi all, had another question: does pants support c...
# general
a
Hi all, had another question: does pants support caching individual tests within a pytest target?
h
It caches per test file, not individual test functions within a file, if that’s what you mean?
a
Yeah that’s what I mean
Was wondering if it would be possible to cache at the individual test function level
c
there are pytest plugins for that, I believe, then you “just” need to figure out how to plug those through into each invocation..
r
It might not be very useful to cache those since dependency resolution won't be able to figure out which dependencies correspond to each test and always rerun (all / none) of them. It helps with rerunning flaky tests though.
👍 1
h
Yeah, this will not be straightforward, although it is something we’ve thought about
The usual advice is to break up the test files…
👍 1
a
Ya our go to so far has been to break up test files.
Thanks all!