hirosystems / stacks-blockchain-api

API for the Stacks blockchain
https://stacks-blockchain-api.vercel.app
GNU General Public License v3.0
170 stars 108 forks source link

Increase test code coverage to 80% #985

Open zone117x opened 2 years ago

zone117x commented 2 years ago

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

zone117x commented 2 years ago

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

rafaelcr commented 2 years ago

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

rafaelcr commented 2 years ago

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