-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev: Use cargo-make for common tasks
- Loading branch information
Showing
4 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
[alias] | ||
deny = ["bin", "cargo-deny"] | ||
insta = ["bin", "cargo-insta"] | ||
make = ["bin", "cargo-make"] | ||
nextest = ["bin", "cargo-nextest"] | ||
tarpaulin = ["bin", "cargo-tarpaulin"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
/.bin | ||
/coverage | ||
/target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
[config] | ||
default_to_workspace = false | ||
skip_core_tasks = true | ||
|
||
[tasks.test] | ||
description = "Run tests and review snapshots" | ||
command = "cargo" | ||
args = [ | ||
"insta", "test", | ||
"--review", | ||
"--unreferenced=delete", | ||
"--test-runner=nextest", | ||
# Run tests with `gc_tombstone` on so that object IDs don't get reused in | ||
# snapshot test output. | ||
"--features=gc_tombstone", | ||
] | ||
|
||
[tasks.coverage] | ||
description = "Run tests to show a coverage report" | ||
command = "cargo" | ||
args = [ | ||
"tarpaulin", | ||
"--skip-clean", | ||
"--target-dir", "target/coverage", | ||
"--out", "html", | ||
"--output-dir", "coverage", | ||
# Run tests with `gc_tombstone` on so that object IDs don't get reused in | ||
# snapshot test output. | ||
"--features=gc_tombstone", | ||
] | ||
|
||
[tasks.deny] | ||
description = "Run cargo-deny checks" | ||
command = "cargo" | ||
args = ["deny", "check"] |