Skip to content

Commit

Permalink
chore: add codacy coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
auula committed Sep 10, 2023
1 parent 7144c80 commit 4b01123
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,13 @@ if [ -z "$case_num" ]; then
fi

if [ "$case_num" -eq 1 ]; then
cd cmd && go test -c && ./cmd.test
cd cmd && go test -c && sudo -S ./cmd.test
elif [ "$case_num" -eq 2 ]; then
echo "Testing conf package"
elif [ "$case_num" -eq 3 ]; then
echo "Testing server package"
elif [ "$case_num" -eq 4 ]; then
cd cmd && go test -c -race -coverprofile=coverage.out -covermode=atomic -v
sudo -S ./cmd.test
bash <(curl -Ls https://coverage.codacy.com/get.sh)
else
echo "Invalid option. Please provide a valid option (1, 2, or 3)."
Expand Down

0 comments on commit 4b01123

Please sign in to comment.