ava
ava copied to clipboard
Watch mode filter by filename and by test name
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.
- Checkout the Issuehunt explorer to discover more funded issues.
- Need some help from other developers? Add your repositories on Issuehunt to raise funds.
Sure.
Does Enter
rerun all tests, like r
does with AVA? That's quite neat actually.
Enter
reruns the filtered list of tests. They use a
to rerun all tests.
Enter reruns the filtered list of tests. They use a to rerun all tests.
Sounds like we should borrow that too 😉
@issuehunt has funded $80.00 to this issue.
- Submit pull request via IssueHunt to receive this reward.
- Want to contribute? Chip in to this issue via IssueHunt.
- Checkout the IssueHunt Issue Explorer to see more funded issues.
- Need help from developers? Add your repository on IssueHunt to raise funds.
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 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.
Ok sounds good, I've managed to get something working for filtering by filename, I'm just working on filtering for test names