mirror of
https://github.com/sstent/go-garth-cli.git
synced 2025-12-05 23:52:02 +00:00
28 lines
869 B
Bash
Executable File
28 lines
869 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
echo "--- Running End-to-End CLI Tests ---"
|
|
|
|
echo "Testing garth --help"
|
|
go run github.com/sstent/go-garth-cli/cmd/garth --help
|
|
|
|
echo "Testing garth auth status"
|
|
go run github.com/sstent/go-garth-cli/cmd/garth auth status
|
|
|
|
echo "Testing garth activities list"
|
|
go run github.com/sstent/go-garth-cli/cmd/garth activities list --limit 5
|
|
|
|
echo "Testing garth health sleep"
|
|
go run github.com/sstent/go-garth-cli/cmd/garth health sleep --from 2024-01-01 --to 2024-01-02
|
|
|
|
echo "Testing garth stats distance"
|
|
go run github.com/sstent/go-garth-cli/cmd/garth stats distance --year
|
|
|
|
echo "Testing garth health vo2max"
|
|
go run github.com/sstent/go-garth-cli/cmd/garth health vo2max --from 2024-01-01 --to 2024-01-02
|
|
|
|
echo "Testing garth health hr-zones"
|
|
go run github.com/sstent/go-garth-cli/cmd/garth health hr-zones
|
|
|
|
echo "--- End-to-End CLI Tests Passed ---" |