go-storage icon indicating copy to clipboard operation
go-storage copied to clipboard

Increase code coverage

Open Xuanwo opened this issue 4 years ago • 2 comments

Steps

  • [x] Move cmd/definitions/tests into tests
    • [x] https://github.com/beyondstorage/specs/pull/137
  • [x] Build up benchmark tests via our tests services https://github.com/beyondstorage/go-storage/issues/569
  • [x] https://github.com/beyondstorage/go-storage/issues/693
  • [ ] Implement unit tests for all our public APIs. (maybe ignore generated ones?)

Xuanwo avatar Jul 06 '21 07:07 Xuanwo

image

Current coverage is 18%: https://codecov.io/gh/beyondstorage/go-storage/tree/aca8f79567794692f74bd4a709934436cb428352

Codecov
Hosted coverage report highly integrated with GitHub, Bitbucket and GitLab. Awesome pull request comments to enhance your QA.

Xuanwo avatar Jul 06 '21 16:07 Xuanwo

  • For tests: we should remove them from test coverage
  • For pkg: we will split them into different packages later, for now, we will try to test them without mock.
  • For generated code: maybe we need to generate related tests?

Xuanwo avatar Jul 25 '21 08:07 Xuanwo