Skip to content

Commit

Permalink
build: 🛠 Add 'nur test' task
Browse files Browse the repository at this point in the history
  • Loading branch information
ddanier committed Mar 10, 2024
1 parent 385698f commit 0a454ad
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion nurfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,17 @@ def --wrapped "nur run" [...args: string] {
cargo "run" ...$args
}

# Run tests
def "nur test" [
--coverage
] {
if $coverage {
cargo tarpaulin
} else {
cargo test
}
}

# Update version in Cargo.toml
def "nur version" [
version: string
Expand All @@ -40,7 +51,7 @@ def "nur publish" [] {
cargo publish
}

# release
# Update version and release to crates.io
def "nur release" [
version: string
] {
Expand Down

0 comments on commit 0a454ad

Please sign in to comment.