question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Watch mode filter by filename and by test name

See original GitHub issue

Issuehunt badges

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.

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

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:2
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
novemberborncommented, Oct 1, 2017

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

Sounds like we should borrow that too 😉

0reactions
radasamcommented, Sep 2, 2022

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Filter tests by filename in watch mode · Issue #1797 - GitHub
As a developer using Vitest I want to have the option to filter test by filename in watch mode so that I can...
Read more >
Watch mode filter by filename and by test name #1530
Enter reruns the filtered list of tests. They use a to rerun all tests. posted by unional about 5 years ago. Enter reruns...
Read more >
Jest CLI filtering tests does not show matching files
In some cases, I can't figure out which, I can't get filtered tests to show up in the Jest CLI. That is, if...
Read more >
jest: watch mode - code-comments
To run Jest in watch mode, pass the --watch option: % jest --watch ... Press t to filter by a test name regex...
Read more >
Watch-mode · GitBook - GitHub Pages
From now on Jest will run test cases again on file changes ... Press t to filter by a test name regex pattern....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found