Hey, #python / #django people: I dimly recall a tool that uses #coverage data to only run #pytest tests that impact changed lines of code, or changed methods/logical blocks of code.

Like: "User.get_display_name was changed, and coverage data shows that these 15 tests test this method directly or indirectly, so only run those"

ring any bells? I found partialtesting (dead) and pytest-watch (spams *such* an amount of irrelevant messages in my project it's unusable, see github.com/joeyespo/pytest-wat)

Follow

@rixx This sounds super familiar, @brianokken might know offhand?

@pganssle @rixx Quick Look through: pythontest.com/top-pytest-plug
- pytest-testmon looks like what you’re looking for, uses coverage.py.
- pytest-watcher - a maintained version of watch.
links to both of these are in the Top pytest plugin page

@pganssle @rixx I’ve never really tried either though. Would love to hear how they work for you.

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.