slackapi / deno-slack-sdk

SDK for building Run on Slack apps using Deno
https://api.slack.com/automation
MIT License
158 stars 27 forks source link

Improve code coverage #213

Closed WilliamBergamin closed 11 months ago

WilliamBergamin commented 1 year ago

Summary

This PR aims to improve the accuracy of code coverage by

I also took the liberty to add a few unit tests to improve code coverage

testing

  1. pull this branch
  2. run deno task test to execute all tests
  3. run deno task coverage to execute the code coverage

Special notes

Should the generation scripts be included in our code coverage? (this code is not directly used by the end user)

Requirements

codecov[bot] commented 1 year ago

Codecov Report

Merging #213 (1a0bbed) into main (c8b372f) will decrease coverage by 1.27%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #213      +/-   ##
==========================================
- Coverage   99.24%   97.97%   -1.27%     
==========================================
  Files          56       58       +2     
  Lines        2128     2177      +49     
  Branches      135      137       +2     
==========================================
+ Hits         2112     2133      +21     
- Misses         15       42      +27     
- Partials        1        2       +1     
Files Coverage Δ
src/datastore/mod.ts 100.00% <100.00%> (+3.57%) :arrow_up:

... and 4 files with indirect coverage changes

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more