Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests for history/engine/engineimpl/describe_workflow_execution.go #5992

Merged
merged 1 commit into from
May 8, 2024

Conversation

natemort
Copy link
Member

@natemort natemort commented May 8, 2024

What changed?

  • Add tests for history/engine/engineimpl/describe_workflow_execution.go. This goes from 0 -> 86% covered.
  • Use t.Cleanup to automate history engine cleanup

Why?

  • Increase code coverage

How did you test it?

  • Unit tests.

Potential risks

Release notes

Documentation Changes

// Add mocks or other fields here
Ctx *shard.TestContext
Copy link
Member

Choose a reason for hiding this comment

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

I was writing tests for refresh_workflow_tasks_test.go and I also ended up adding this guy here. A popular mock object :) I am not done anyway so will wait for your merge and rebase

@@ -111,7 +111,6 @@ func NewEngineForTest(t *testing.T, newEngineFn NewEngineFn) *EngineForTest {
},
)

visibilityMgr := persistence.NewMockVisibilityManager(controller)
Copy link
Member

Choose a reason for hiding this comment

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

good catch

Copy link

codecov bot commented May 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 65.55%. Comparing base (73e6dbc) to head (0421f4a).
Report is 4 commits behind head on master.

Additional details and impacted files

see 17 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0107705...0421f4a. Read the comment docs.

@natemort natemort merged commit 65fca33 into cadence-workflow:master May 8, 2024
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants