rtfeldman / rtfeldman/node-test-runner

Ability to narrow down run to specific test

Open
#236 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
140
Forks
83
Avg merge
8h 25m
Merged PRs (30d)
5

Description

As far as I can tell, at the moment you can narrow the run down to a specific test file, but not a specific test within the file (or a list "describe" tests).

The use case I have is that I'm trying to debug a test with Debug.log statements. By narrowing down to a specific test, I can see if a branch of code is being run (otherwise the log statement gets lost in the tens of other tests that are being run in the same file that emit the same message).

It would also open up the possibility of IDE tooling such as right clicking on a test and running just that test.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file, test, or entry point is named in the issue. Start by locating the existing logic that narrows execution to a test file, then trace how individual tests and describe groups are represented. Done means selecting one test or a list of describe tests works while preserving the existing test-run behavior and enabling focused output.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
cli, testing-qa
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.