Skip to content

test: increase test coverage for activity package event routing - #420

Merged
mwbrooks merged 3 commits into
mainfrom
mwbrooks-test-coverage-7
Mar 20, 2026
Merged

test: increase test coverage for activity package event routing#420
mwbrooks merged 3 commits into
mainfrom
mwbrooks-test-coverage-7

Conversation

@mwbrooks

Copy link
Copy Markdown
Member

Changelog

  • N/A

Summary

This pull request increasing test coverage for the internal/pkg/platform/activity package.

  • Add tests for prettifyActivity event type routing to verify event types
  • Brings prettifyActivity coverage from 33.3% to 97.0%

Requirements

…outing
Add tests for prettifyActivity event type routing to verify all
EventType cases in the switch statement dispatch to the correct
formatting functions.
@mwbrooksmwbrooks added this to the Next Release milestone Mar 19, 2026
@mwbrooksmwbrooks self-assigned this Mar 19, 2026
@mwbrooksmwbrooks added code health M-T: Test improvements and anything that improves code health semver:patch Use on pull requests to describe the release version increment labels Mar 19, 2026
@codecov

codecovBot commented Mar 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 69.74%. Comparing base (b003e9b) to head (fe3c391).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@ Coverage Diff @@## main #420 +/- ##
==========================================
+ Coverage 69.49% 69.74% +0.24% 
==========================================
Files 220 220 Lines 18446 18446 ==========================================
+ Hits 12819 12865 +46 + Misses 4453 4409 -44 + Partials 1174 1172 -2 

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mwbrooks
mwbrooks marked this pull request as ready for review March 19, 2026 21:41
@mwbrooks
mwbrooks requested a review from a team as a code ownerMarch 19, 2026 21:41

@zimegzimeg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@mwbrooks Amazing again and again! With the changes of #419 we're so close to unlocking 70% praises.

🧪 All things LGTM to me so merge when time seems good to you.

}
}

func Test_prettifyActivity_allEventTypes(t *testing.T) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

🌻 praise: Nice test cases!

Resolve conflict in activity_test.go by keeping both the
prettifyActivity routing tests (HEAD) and individual function
tests (origin/main).
@mwbrooks

Copy link
Copy Markdown
MemberAuthor

@zimeg Thank you again for your tireless reviews of my test coverage pull requests 😆 Happy to see this one land! From here, I'll need to take a step back to see where I can focus next. ⛰️

@mwbrooks
mwbrooks merged commit 1065713 into mainMar 20, 2026
8 checks passed
@mwbrooks
mwbrooks deleted the mwbrooks-test-coverage-7 branch March 20, 2026 17:22
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code healthM-T: Test improvements and anything that improves code healthsemver:patchUse on pull requests to describe the release version increment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@mwbrooks@zimeg