ava icon indicating copy to clipboard operation
ava copied to clipboard

Watch mode filter by filename and by test name

Open unional opened this issue 6 years ago • 9 comments

Issuehunt badges

[email protected]

borrow the idea from jest:

Watch Usage
 › Press p to filter by a filename regex pattern.
 › Press t to filter by a test name regex pattern.
 › Press q to quit watch mode.
 › Press Enter to trigger a test run.

These two features are very valuable. They allow me to focus on a subset of tests when I am working on a specific part of the system.

There is a $80.00 open bounty on this issue. Add more on Issuehunt.

unional avatar Sep 23 '17 05:09 unional

Sure.

Does Enter rerun all tests, like r does with AVA? That's quite neat actually.

novemberborn avatar Sep 24 '17 14:09 novemberborn

Enter reruns the filtered list of tests. They use a to rerun all tests.

unional avatar Sep 24 '17 19:09 unional

Enter reruns the filtered list of tests. They use a to rerun all tests.

Sounds like we should borrow that too 😉

novemberborn avatar Oct 01 '17 15:10 novemberborn

@issuehunt has funded $80.00 to this issue.


IssueHuntBot avatar May 15 '19 05:05 IssueHuntBot

Hi, Is this still worth working on?

I've noticed there is already an option to pass patterns to the watcher but this is using wildcards, do we want to use this instead of regex?

radasam avatar Aug 23 '22 22:08 radasam

@radasam it'd be neat, yea! The key change over our current watch mode is being able to take inputs, be it filtering the files or the tests. Whether that has to take the form of Jest' implementation from five years ago, or their current implementation, I do not know. For example a "type some characters and we'll show you a subset of the files / tests that match somehow and then you can run those" could be quite interesting.

novemberborn avatar Aug 25 '22 12:08 novemberborn

Ok sounds good, I've managed to get something working for filtering by filename, I'm just working on filtering for test names

radasam avatar Sep 02 '22 23:09 radasam