test: justfile for sanity tests
This commit is contained in:
parent
9d020efa8c
commit
6c1d312f7b
11
justfile
Normal file
11
justfile
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
all_tests: no_token_test token_tests
|
||||||
|
|
||||||
|
no_token_test:
|
||||||
|
cargo clippy --all-targets -- -D warnings
|
||||||
|
cargo clippy --all-targets --all-features -- -D warnings
|
||||||
|
cargo test
|
||||||
|
|
||||||
|
# These tests require an access token saved in a file called "cli.json"
|
||||||
|
token_tests:
|
||||||
|
cargo run -- api vehicles
|
||||||
|
cargo run -- api energy-sites
|
Loading…
Reference in a new issue