Skip to content

Commit 9396512

Browse files
committed
update tests
1 parent 54ca9a6 commit 9396512

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@ func main() {
3636
[build-status-link]: https://travis-ci.org/grokify/html-strip-tags-go
3737
[docs-godoc-svg]: https://img.shields.io/badge/docs-godoc-blue.svg
3838
[docs-godoc-link]: https://godoc.org/github.com/grokify/html-strip-tags-go
39-
[license-svg]: https://img.shields.io/badge/license-MIT-blue.svg
39+
[license-svg]: https://img.shields.io/github/license/grokify/html-strip-tags-go.svg
4040
[license-link]: https://github.com/grokify/html-strip-tags-go/blob/master/LICENSE

go.test.sh

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env bash
2+
3+
# From https://github.com/codecov/example-go
4+
5+
set -e
6+
echo "" > coverage.txt
7+
8+
for d in $(find . -maxdepth 10 -type d); do
9+
if ls $d/*.go &> /dev/null; then
10+
go test -coverprofile=profile.out -covermode=atomic $d
11+
if [ -f profile.out ]; then
12+
cat profile.out >> coverage.txt
13+
rm profile.out
14+
fi
15+
fi
16+
done

0 commit comments

Comments
 (0)