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

Comments and event attributes in expected history in tests #4426

Merged
merged 6 commits into from
Jun 7, 2023

Conversation

alexshtin
Copy link
Member

@alexshtin alexshtin commented Jun 1, 2023

What changed?
Add ability to add comments and event attributes one wants to assert to expected history in functional tests.

Why?
To improve tests maintainability and increase coverage. I am going to add more comments and attributes to other histories later.

How did you test it?
Modified one test.

Potential risks
No risks.

Is hotfix candidate?
No.

@alexshtin alexshtin requested a review from a team as a code owner June 1, 2023 01:18
@alexshtin alexshtin force-pushed the feature/comments-history branch from 555a81f to 00db241 Compare June 1, 2023 01:20
Copy link
Contributor

@mmcshane mmcshane left a comment

Choose a reason for hiding this comment

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

Not sure why we'd parse but then keep in string form? If we're going to do this sort of work, let's parse into a structured form so that it can be manipulated and more meaningfully diff'd. You can do a Good Enough parser in one ugly line or three reasonable lines. https://go.dev/play/p/obvWCfx_sBJ

@alexshtin alexshtin force-pushed the feature/comments-history branch from b3360ef to 6e518a2 Compare June 6, 2023 21:29
@alexshtin alexshtin changed the title Add abiliy to add comments to exepcted history in tests Comments and event attributes in expected history in tests Jun 6, 2023
@alexshtin alexshtin force-pushed the feature/comments-history branch from b73fc88 to 569a721 Compare June 7, 2023 04:38
@alexshtin alexshtin enabled auto-merge (squash) June 7, 2023 18:16
@alexshtin alexshtin merged commit a51abcf into temporalio:master Jun 7, 2023
@alexshtin alexshtin deleted the feature/comments-history branch June 7, 2023 18:47
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