nushell.github.io
nushell.github.io copied to clipboard
Replace std testing with nupm
std testing module went from deprecated to removed since nushell/nushell#11331 in 0.90.0. Now requires nupm.
It's also in nu_scripts if you still want to use it.
Probably not helpful to document both ways though.
@fdncred I'm down now if you're open to it. I wouldn't discuss nupm itself. Basically:
- Clone nupm
- Add it to
$env.NU_LIB_DIRS - Create empty
nupm.nuon(I think this should be relaxed) - Create sibling
testsdirectory - Create
mod.nu - Add
export defusingstd assert nupm testto run all visible commands--dirflag to target a different path
seems like a pain to me.
Seems easier just to use crates/nu-std/testing.nu
But I don't really care, if others like this strategy.
seems like a pain to me.
NGL I wish nupm was included under an experimental module or something.
Seems easier just to use crates/nu-std/testing.nu
I don't use Rust to manage non-Rust stuff though. FWIW half of those are nearly identical to (in a way less complicated than) std testing.
But I don't really care, if others like this strategy.
CC @kubouch or whoever has an opinion. Just combing through issues I was interested in.