Skip to content

Conversation

@WilliamBergamin
Copy link
Contributor

@WilliamBergamin WilliamBergamin commented Mar 28, 2025

Summary

This PR is inspired by slackapi/node-slack-sdk#2178

It updates the CI pipeline to publish the test results to codcov and provide some neat reporting details

Testing

Check out the results on codcov

Category

  • slack_bolt.App and/or its core components
  • slack_bolt.async_app.AsyncApp and/or its core components
  • Adapters in slack_bolt.adapter
  • Document pages under /docs
  • Others

Requirements

Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.

  • I've read and understood the Contributing Guidelines and have done my best effort to follow them.
  • I've read and agree to the Code of Conduct.
  • I've run ./scripts/install_all_and_run_tests.sh after making the changes.

@WilliamBergamin WilliamBergamin added improvement python Pull requests that update Python code tests labels Mar 28, 2025
@WilliamBergamin WilliamBergamin self-assigned this Mar 28, 2025
@codecov
Copy link

codecov bot commented Mar 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.96%. Comparing base (c0ea531) to head (ab18733).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1282   +/-   ##
=======================================
  Coverage   90.96%   90.96%           
=======================================
  Files         222      222           
  Lines        7501     7501           
=======================================
  Hits         6823     6823           
  Misses        678      678           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@WilliamBergamin WilliamBergamin marked this pull request as ready for review March 28, 2025 17:57
Copy link
Member

@zimeg zimeg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks so much for giving test results this attention 🙏 ✨

And the insights shown already are so interesting! With excitement of future improvements to testings all around, I think this is good to merge when the time is right 🚢

Comment on lines +46 to +49
pytest tests/adapter_tests/ \
--ignore=tests/adapter_tests/socket_mode/ \
--ignore=tests/adapter_tests/asgi/ \
--junitxml=reports/test_adapter.xml
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏 I'm a big fan of this change!

I noticed this now covers the google_cloud_functions adapter which I'm not sure was run in CI beforehand 👾

uses: codecov/test-results-action@v1
with:
directory: ./reports/
files: test*.xml
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
files: test*.xml
files: ./**/test*.xml

https://github.com/slackapi/bolt-python/actions/runs/14134899037/job/39604145700#step:14:183

Right now this raises a warning in outputs 🔍

Some files were not found --- {"not_found_files": ["test*.xml"]}

I think a standalone directory option might be another option, and this isn't a blocker at all! Just wanting to share findings ✨

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thats a great catch 🥇 I totally missed that warning, I'll try testing a few things out

@WilliamBergamin WilliamBergamin merged commit e1ac14f into main Mar 28, 2025
14 checks passed
@WilliamBergamin WilliamBergamin deleted the code-cov-test-reporting branch March 28, 2025 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement python Pull requests that update Python code tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants