stacks-blockchain-api icon indicating copy to clipboard operation
stacks-blockchain-api copied to clipboard

Increase test code coverage to 80%

Open zone117x opened this issue 3 years ago • 3 comments

Current coverage is ~72%. We'd like to increasing that to around 80%

zone117x avatar Jan 18 '22 15:01 zone117x

Helper module for writing new tests https://github.com/hirosystems/stacks-blockchain-api/blob/develop/src/test-utils/test-builders.ts

zone117x avatar Jan 18 '22 16:01 zone117x

Example tests that use the block/tx builders: https://github.com/hirosystems/stacks-blockchain-api/blob/develop/src/tests/token-tests.ts

rafaelcr avatar Jan 18 '22 16:01 rafaelcr

We should experiment with tools that publish local test coverage data, since we're having inconsistency problems with both Codecov and Coveralls in some of our PRs

rafaelcr avatar May 17 '22 16:05 rafaelcr