<#17335 Cache at a testcase level - similar to pyt...
# github-notifications
q
#17335 Cache at a testcase level - similar to pytest-testmon New issue created by AbdealiJK Is your feature request related to a problem? Please describe. pytest-testmon is a plugin that helps in figuring out the relationship between the "covered line of code" and the testcase. This changes the concept of rerunning and aching pytest results from a file level to a line or testcase level. i.e. when a line of code is modified, you can figure out which testcases need to be rerun. Describe the solution you'd like If pants can run only the testcases based on the lines that I have modified, that would be cool and much faster Describe alternatives you've considered • pytest-testmon (But it does not have accurate coverage information) • pytest-tia (This is not maintaled any longer) • https://python-tia.readthedocs.io/en/latest/alternatives.html Additional context In my project we have 100+ tests defined in a single test file (mostly via pytest.mark.parametrize). We could also just break this up into smaller files. But not sure if that is ideal pantsbuild/pants