Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add code coverage metrics #204

Closed
cbrake opened this issue May 24, 2021 · 2 comments
Closed

add code coverage metrics #204

cbrake opened this issue May 24, 2021 · 2 comments
Labels
enhancement improvements on existing functionality

Comments

@cbrake
Copy link
Member

cbrake commented May 24, 2021

one example:

https://app.codecov.io/gh/genjidb/genji/compare/403

@cbrake cbrake mentioned this issue May 24, 2021
7 tasks
@cbrake cbrake added the enhancement improvements on existing functionality label Nov 12, 2021
@cbrake
Copy link
Member Author

cbrake commented Jul 1, 2022

possible option: https://github.com/mattn/goveralls

@cbrake
Copy link
Member Author

cbrake commented Mar 3, 2023

hmm:

[cbrake@ceres go]$ go test -p=1 -cover ./...
?       github.com/simpleiot/simpleiot  [no test files]
?       github.com/simpleiot/simpleiot/api      [no test files]
?       github.com/simpleiot/simpleiot/assets   [no test files]
?       github.com/simpleiot/simpleiot/assets/files     [no test files]
ok      github.com/simpleiot/simpleiot/client   5.761s  coverage: 40.9% of statements
?       github.com/simpleiot/simpleiot/cmd/boltutil     [no test files]
?       github.com/simpleiot/simpleiot/cmd/edge [no test files]
?       github.com/simpleiot/simpleiot/cmd/fetch        [no test files]
?       github.com/simpleiot/simpleiot/cmd/modbus       [no test files]
?       github.com/simpleiot/simpleiot/cmd/modbus-client        [no test files]
?       github.com/simpleiot/simpleiot/cmd/modbus-server        [no test files]
?       github.com/simpleiot/simpleiot/cmd/point-size   [no test files]
?       github.com/simpleiot/simpleiot/cmd/send-sms     [no test files]
?       github.com/simpleiot/simpleiot/cmd/serial-encode        [no test files]
?       github.com/simpleiot/simpleiot/cmd/siot [no test files]
?       github.com/simpleiot/simpleiot/cmd/siot-e2e-test        [no test files]
?       github.com/simpleiot/simpleiot/cmd/siotcmd      [no test files]
?       github.com/simpleiot/simpleiot/cmd/tof10120     [no test files]
?       github.com/simpleiot/simpleiot/contrib  [no test files]
ok      github.com/simpleiot/simpleiot/data     (cached)        coverage: 36.2% of statements
?       github.com/simpleiot/simpleiot/file     [no test files]
ok      github.com/simpleiot/simpleiot/frontend (cached)        coverage: [no statements]
?       github.com/simpleiot/simpleiot/gps      [no test files]
?       github.com/simpleiot/simpleiot/internal [no test files]
?       github.com/simpleiot/simpleiot/internal/pb      [no test files]
ok      github.com/simpleiot/simpleiot/modbus   (cached)        coverage: 53.9% of statements
?       github.com/simpleiot/simpleiot/msg      [no test files]
?       github.com/simpleiot/simpleiot/network  [no test files]
?       github.com/simpleiot/simpleiot/network/needsported      [no test files]
ok      github.com/simpleiot/simpleiot/node     (cached)        coverage: 1.1% of statements
?       github.com/simpleiot/simpleiot/particle [no test files]
ok      github.com/simpleiot/simpleiot/respreader       (cached)        coverage: 46.8% of statements
?       github.com/simpleiot/simpleiot/sensors  [no test files]
ok      github.com/simpleiot/simpleiot/server   (cached)        coverage: 6.7% of statements
?       github.com/simpleiot/simpleiot/sim      [no test files]
ok      github.com/simpleiot/simpleiot/store    (cached)        coverage: 55.7% of statements
ok      github.com/simpleiot/simpleiot/system   (cached)        coverage: 9.2% of statements
ok      github.com/simpleiot/simpleiot/test     (cached)        coverage: 43.8% of statements
?       github.com/simpleiot/simpleiot/tools    [no test files]

We are a long way from awesome-Go level of coverage requirements (80-90%) ...

Closing this for now ...

@cbrake cbrake closed this as completed Mar 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement improvements on existing functionality
Projects
None yet
Development

No branches or pull requests

1 participant