nushell / nushell/nupm

allow ignoring tests

Open
#46 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Nushell
Stars
335
Forks
24
PR merge metrics
No merged PRs in 30d

Description

i have a test in nu-git-manager that cannot run for now and thus i thought it would be cool to ignore it.

Description

for now, the only way to ignore a test is to not export it.
however, by doing so, the test won't appear in the output of nupm test...

i think it would be cool to support something like

# tests/mod.nu
export def my-test-ignore [] {
    # ...
}

and still have my-test appear in yellow next to the other ones 😋

Testing package /path/to/my-package
tests test-fail-1 ... FAIL
tests test-fail-3 ... FAIL
tests test-success ... SUCCESS
tests test-ignore-1 ... IGNORE
tests test-fail-2 ... FAIL
tests test-ignore-2 ... IGNORE
Ran 5 tests. 1 succeeded, 2 ignored, 3 failed.

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

Start with the nupm test entry point and the test example in tests/mod.nu; compare how exported and non-exported tests are discovered and reported. Done means an exported ignored test appears in the output with an IGNORE status and the summary counts ignored tests separately.

Written by the indexing model from the issue text.

Assessment

Domain
cli, testing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.