You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I didn't actually see what nupm was doing to run tests (I initially assumed it was written in Rust) but I see it's doing similar to my recent PR to the documentation that illustrates a tiny embedded test runner method that does something very similar.
That ignores tests like this:
# ignore
def test_fib_ignored_test [] {
print"This test will not be executed"
}
by doing
scope commands
| where ($it.name | str starts-with "test_")
| where not ($it.description | str starts-with "ignore")
# ...
I imagine there is a whole bunch of stuff that could be driven from description instructions. E.g. running a test method with different test data.
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
and still have
my-test
appear in yellow next to the other ones 😋The text was updated successfully, but these errors were encountered: