-
-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathJustfile
More file actions
22 lines (19 loc) · 680 Bytes
/
Justfile
File metadata and controls
22 lines (19 loc) · 680 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
_default:
@just --list --unsorted
# format all Rust source code
fmt:
cargo +nightly fmt --all
# run unit and integration tests
test:
cargo nextest run --all-features
# run integration tests with coverage
coverage:
cargo llvm-cov test --all-features
cargo llvm-cov report --html
cargo llvm-cov report --json --summary-only | \
jq -c '.data[0].totals.lines.percent | { \
schemaVersion: 1, \
label: "coverage", \
message: "\(.|round)%", \
color: (if . < 70 then "red" elif . < 80 then "yellow" else "green" end) \
}' > `cargo metadata | jq -r '.target_directory'`/llvm-cov/html/coverage.json