avajs/ava

Do you want to work on this issue?

You can request for a bounty in order to promote it!


1 active bounty request

$20.00
Solve someone else's bounty request by clicking on it and completing the funding to earn additional credits

Watch mode filter by filename and by test name #1530

unional posted onGitHub

ava@0.22

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.


Sure.

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

posted by novemberborn over 7 years ago

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

posted by unional over 7 years ago

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

Sounds like we should borrow that too 😉

posted by novemberborn over 7 years ago

@issuehunt has funded $80.00 to this issue.


posted by IssueHuntBot almost 6 years ago

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?

posted by radasam over 2 years ago

@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.

posted by novemberborn over 2 years ago

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

posted by radasam over 2 years ago

Is this something that would still be valuable to have?

Do we had any progress or advancements on other stuff that could potentially help implementing this?

posted by ologbonowiwi 11 months ago

Is this something that would still be valuable to have?

I think so.

Do we had any progress or advancements on other stuff that could potentially help implementing this?

The watch implementation was modernized last year, that may make things easier.

posted by novemberborn 10 months ago

I submitted the pull request that implements this feature!! Watch the demo video:

https://github.com/user-attachments/assets/2cf38033-6a48-4892-81f7-df2ebf09b0b9

posted by mmulet 11 days ago

Fund this Issue

$80.00
Funded
Only logged in users can fund an issue

Pull requests

Recent activities

mmulet submitted an output to  avajs/ ava# 1530
11 days ago
issuehunt funded 80.00 for avajs/ava# 1530
almost 6 years ago