File tree Expand file tree Collapse file tree 5 files changed +406
-0
lines changed Expand file tree Collapse file tree 5 files changed +406
-0
lines changed Original file line number Diff line number Diff line change
1
+ coverage.xml
2
+ .env
Original file line number Diff line number Diff line change
1
+ # Go Coverage
2
+
3
+ This tool is used to export summary of XML coverage report into a SQL database.
4
+
5
+ ## Usage
6
+
7
+ ``` bash
8
+ export ANALYTICS_DATABASE_HOST=" localhost"
9
+ export ANALYTICS_DATABASE_PORT=" 5433"
10
+ export ANALYTICS_DATABASE_USERNAME=" postgres"
11
+ export ANALYTICS_DATABASE_PASSWORD=" "
12
+ export ANALYTICS_DATABASE_NAME=" analytics"
13
+ export DRONE_REPO=" openware/go-coverage"
14
+ export ANALYTICS_COMPONENT=" go-coverage" # use it to differenciate different applications in a mono-repo.
15
+ export DRONE_TAG=" 1.0.0" # trigger this script on drone tag to track only stable versions
16
+
17
+ go run ./ coverage.xml
18
+ ```
Original file line number Diff line number Diff line change
1
+ module github.com/openware/go-coverage
2
+
3
+ go 1.19
4
+
5
+ require (
6
+ github.com/antchfx/xmlquery v1.3.13 // indirect
7
+ github.com/antchfx/xpath v1.2.1 // indirect
8
+ github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect
9
+ github.com/jackc/chunkreader/v2 v2.0.1 // indirect
10
+ github.com/jackc/pgconn v1.13.0 // indirect
11
+ github.com/jackc/pgio v1.0.0 // indirect
12
+ github.com/jackc/pgpassfile v1.0.0 // indirect
13
+ github.com/jackc/pgproto3/v2 v2.3.1 // indirect
14
+ github.com/jackc/pgservicefile v0.0.0-20200714003250-2b9c44734f2b // indirect
15
+ github.com/jackc/pgtype v1.12.0 // indirect
16
+ github.com/jackc/pgx/v4 v4.17.2 // indirect
17
+ github.com/jinzhu/inflection v1.0.0 // indirect
18
+ github.com/jinzhu/now v1.1.4 // indirect
19
+ golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa // indirect
20
+ golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd // indirect
21
+ golang.org/x/text v0.3.7 // indirect
22
+ gorm.io/driver/postgres v1.4.5 // indirect
23
+ gorm.io/gorm v1.24.2 // indirect
24
+ )
You can’t perform that action at this time.
0 commit comments