Skip to content

Commit afb9428

Browse files
committed
add test script
1 parent 973b2cc commit afb9428

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

script/test

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#! /usr/bin/env bash
2+
3+
set -e
4+
5+
# if the tparse binary is not found, don't use it
6+
if ! command -v tparse &> /dev/null; then
7+
go test -v -cover ./...
8+
else
9+
set -o pipefail && go test -json ./... | tparse -all -trimpath github.com/github/
10+
fi

0 commit comments

Comments
 (0)