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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Improvement]Testing #352

Merged
merged 1 commit into from
May 15, 2024
Merged

[Improvement]Testing #352

merged 1 commit into from
May 15, 2024

Conversation

ipavlidakis
Copy link
Collaborator

@ipavlidakis ipavlidakis commented Apr 15, 2024

馃幆 Goal

This PR attempts to provide an infrastructure that will allow us to test our Core flow using unit tests. This is crucial to increase our confidence on product stability but also to remove our dependency on UI tests that as they increase in number are slowing our pipelines.

馃洜 Implementation

The new Mockable implementation provides a consistent way that allows the creation of mocks for any reference value type while allowing mocking it's method calls. It relies on dynamicmemberlookup and function overrides.

馃帹 Showcase

The updated CallKitServiceTests provide a demonstration of the new Mockable implementation. For the purpose of the tests we have provided mocks for StreamVideo and Call, both are core objects in our stack.

鈽戯笍 Contributor Checklist

  • I have signed the Stream CLA (required)
  • This change follows zero 鈿狅笍 policy (required)
  • This change should receive manual QA
  • Changelog is updated with client-facing changes
  • New code is covered by unit tests
  • Comparison screenshots added for visual changes
  • Affected documentation updated (Docusaurus, tutorial, CMS)

@ipavlidakis ipavlidakis self-assigned this Apr 15, 2024
Copy link

github-actions bot commented Apr 15, 2024

1 Warning
鈿狅笍 Big PR

Generated by 馃毇 Danger

@ipavlidakis ipavlidakis force-pushed the improvements/improve-testing branch from 3b1e4af to 8a00d39 Compare May 13, 2024 13:34
@ipavlidakis ipavlidakis marked this pull request as ready for review May 13, 2024 13:34
@ipavlidakis ipavlidakis requested a review from a team as a code owner May 13, 2024 13:34
@ipavlidakis ipavlidakis added the enhancement New feature or request label May 13, 2024
@ipavlidakis ipavlidakis force-pushed the improvements/improve-testing branch from 568002f to 7e9b703 Compare May 14, 2024 09:41
@ipavlidakis ipavlidakis force-pushed the improvements/improve-testing branch from 7e9b703 to 857eea8 Compare May 15, 2024 06:44
Copy link

sonarcloud bot commented May 15, 2024

Copy link
Collaborator

@martinmitrevski martinmitrevski left a comment

Choose a reason for hiding this comment

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

Great stuff 馃憤

@ipavlidakis ipavlidakis merged commit 9bf85ec into main May 15, 2024
12 checks passed
@ipavlidakis ipavlidakis deleted the improvements/improve-testing branch May 15, 2024 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants