allow ignoring tests
Nobody has claimed this yet.
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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