Add a test command to the nushell script

This commit is contained in:
Greg Burri 2025-05-11 12:11:01 +02:00
parent 1c2e910dea
commit 7304300720

13
do.nu
View file

@ -10,6 +10,10 @@ def "main run" [] {
run run
} }
def "main test" [] {
test
}
# Generate the documentation in 'target/doc'. # Generate the documentation in 'target/doc'.
def "main doc" [] { def "main doc" [] {
cargo doc --document-private-items --no-deps cargo doc --document-private-items --no-deps
@ -37,13 +41,12 @@ def "main deploy" [
scp ...$args scp ...$args
} }
test
cd frontend cd frontend
trunk build --release trunk build --release
cd .. cd ..
cd backend
cargo test
if target != "" { if target != "" {
cargo build --target $target --release cargo build --target $target --release
} else { } else {
@ -101,4 +104,8 @@ def run_backend [] {
cd backend cd backend
cargo run cargo run
cd .. cd ..
}
def test [] {
cargo test
} }