mocha icon indicating copy to clipboard operation
mocha copied to clipboard

🚀 Feature: Re-run only affected modules in watch mode

Open boneskull opened this issue 4 years ago • 4 comments

This would really help teams that have very large test suites.

I am not sure exactly how other test frameworks accomplish this, but I can think of a few strategies.

@craigtaub if you're looking for something to do, researching various strategies and proposing a way forward would be helpful.

When we do implement, we can assume that the computation of the "affected module hierarchy" will save time over just running everything (as we currently do), so we can probably avoid worrying too much about caching in an MVP.

boneskull avatar Jun 26 '20 19:06 boneskull

@craigtaub if you want to look at this, please assign to yourself

boneskull avatar Jun 26 '20 19:06 boneskull

Sounds interesting. Will look into this when I get some time.

craigtaub avatar Jun 27 '20 23:06 craigtaub

Related: #4350

JoshuaKGoldberg avatar Dec 27 '23 07:12 JoshuaKGoldberg

Marking as accepting PRs. But as with https://github.com/mochajs/mocha/issues/4350#issuecomment-668721125: this is not going to be easy. It's a big feature ask. I'd strongly suggest anybody looking at this issue to get through multiple other issues first before trying this. 🙂

JoshuaKGoldberg avatar Feb 06 '24 22:02 JoshuaKGoldberg