From 6c1d312f7bf4430fe56a0e566a677a27028b9fb4 Mon Sep 17 00:00:00 2001 From: gak Date: Tue, 29 Aug 2023 12:18:07 +1000 Subject: [PATCH] test: justfile for sanity tests --- justfile | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 justfile diff --git a/justfile b/justfile new file mode 100644 index 0000000..8efed08 --- /dev/null +++ b/justfile @@ -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