-
Notifications
You must be signed in to change notification settings - Fork 3
/
justfile
36 lines (26 loc) · 985 Bytes
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# This file is only for development
set windows-shell := ["powershell.exe"]
set dotenv-load := true
default: test
messages:
cargo run -- messages -f txt,json,csv --images --no-usernames --redact
messages-dbg:
cargo run -- messages -f json --debug --images --no-usernames
subreddit:
cargo run -- subreddit -n r/rexitTest -f txt,json,csv --images
subreddit-dbg:
cargo run -- subreddit -n r/rexitTest -f txt,json,csv --images --debug
saved:
cargo run -- saved -f txt,json,csv --images
saved-dbg:
cargo run -- saved -f txt,json,csv --images --debug
test:
cargo test
test-creds:
cargo test -- --include-ignored
doc:
cargo doc --no-deps --open
codecov:
$env:RUSTFLAGS="-Cinstrument-coverage"; cargo build --profile codecov
LLVM_PROFILE_FILE="your_name-%p-%m.profraw" RUSTFLAGS="-Cinstrument-coverage" cargo test -j 1 --all-features --profile codecov
grcov . -s . --binary-path ./target/debug/ -t html --branch --ignore-not-existing -o ./codecov