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