Add shell script of checking coverage
authorjw_wonny.cha <jw_wonny.cha@samsung.com>
Mon, 25 Mar 2019 08:01:50 +0000 (17:01 +0900)
committerjw_wonny.cha <jw_wonny.cha@samsung.com>
Mon, 25 Mar 2019 08:01:50 +0000 (17:01 +0900)
coverage.sh [new file with mode: 0755]

diff --git a/coverage.sh b/coverage.sh
new file mode 100755 (executable)
index 0000000..a4bae01
--- /dev/null
@@ -0,0 +1,8 @@
+#! /bin/bash
+
+export GOPATH=$GOPATH:$BASE_DIR:$BASE_DIR/vendor
+
+go test -v -cover restapi/v1 -coverpkg=servicemgr,devicemgr,restapi -coverprofile cover.out
+go tool cover -html=cover.out -o cover.html
+
+firefox cover.html
\ No newline at end of file