summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--golang/TODO5
-rwxr-xr-xgolang/test.sh12
2 files changed, 15 insertions, 2 deletions
diff --git a/golang/TODO b/golang/TODO
index 89a1105c..117bcf4d 100644
--- a/golang/TODO
+++ b/golang/TODO
@@ -9,9 +9,10 @@ x config
x sentry
x cobra command line parsing?
x database creation and access
+x 404, not panic, when empty result
+- creator post
- test framework
-- panic recovery middleware
-- 404, not panic, when empty result
later:
+- panic recovery middleware
- metrics
diff --git a/golang/test.sh b/golang/test.sh
new file mode 100755
index 00000000..8e0159e3
--- /dev/null
+++ b/golang/test.sh
@@ -0,0 +1,12 @@
+#!/usr/bin/env bash
+
+set -e
+echo "" > coverage.txt
+
+for d in $(go list ./... | grep -v -e internal/mock -e cmd/api/server -e vendor); do
+ go test -race -coverprofile=profile.out -covermode=atomic "$d"
+ if [ -f profile.out ]; then
+ cat profile.out >> coverage.txt
+ rm profile.out
+ fi
+done