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

Testing rework: .ToObservableChangeSet() #760

Conversation

JakenVeina
Copy link
Collaborator

Rebuilt test fixtures for both .ToObservableChangeSet() operators, increasting code coverage from 69% to 100% across the internal implementation classes.

Identified existing defects within the .ToObservableChangeSet() operators, mostly related to error and completion propagation, and implemented testing for this behavior, with the tests being marked as "Skip" until the defects are fixed. This also includes the defect referred in #635.

Added an IsCompleted flag to ChangeSetAggregator<T>, to allow for testing of completion propagation.

…increasting code coverage from 69% to 100% across the internal implementation classes.

Identified existing defects within the `.ToObservableChangeSet()` operators, mostly related to error and completion propagation, and implemented testing for this behavior, with the tests being marked as "Skip" until the defects are fixed. This also includes the defect referred in reactivemarbles#635.

Added an `IsCompleted` flag to `ChangeSetAggregator<T>`, to allow for testing of completion propagation.
Copy link

codecov bot commented Nov 20, 2023

Codecov Report

Attention: 408 lines in your changes are missing coverage. Please review.

Comparison is base (53d5f6d) 64.74% compared to head (248f020) 65.55%.
Report is 3 commits behind head on main.

Files Patch % Lines
src/DynamicData/Cache/ObservableCacheEx.cs 53.48% 19 Missing and 1 partial ⚠️
src/DynamicData/List/ObservableListEx.cs 64.10% 13 Missing and 1 partial ⚠️
src/DynamicData/Aggregation/AvgEx.cs 73.68% 10 Missing ⚠️
src/DynamicData/Aggregation/SumEx.cs 74.35% 10 Missing ⚠️
src/DynamicData/ObservableChangeSet.cs 58.33% 10 Missing ⚠️
src/DynamicData/Platforms/net45/ParallelEx.cs 25.00% 7 Missing and 2 partials ⚠️
src/DynamicData/Aggregation/StdDevEx.cs 76.66% 5 Missing and 2 partials ⚠️
src/DynamicData/List/Internal/GroupOnProperty.cs 0.00% 7 Missing ⚠️
src/DynamicData/Aggregation/CountEx.cs 25.00% 6 Missing ⚠️
src/DynamicData/Cache/Internal/CacheUpdater.cs 53.84% 6 Missing ⚠️
... and 126 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #760      +/-   ##
==========================================
+ Coverage   64.74%   65.55%   +0.80%     
==========================================
  Files         226      227       +1     
  Lines       11459    11095     -364     
  Branches     2334     2294      -40     
==========================================
- Hits         7419     7273     -146     
+ Misses       3083     2884     -199     
+ Partials      957      938      -19     

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

Copy link
Collaborator

@RolandPheasant RolandPheasant left a comment

Choose a reason for hiding this comment

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

👍


[Fact(Skip = "Outstanding bug, completion is not forwarded")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Usage", "xUnit1004:Test methods should not be skipped", Justification = "Bug to be fixed")]
public void RemovalsArePending_CompletionWaitsForRemovals()
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice work

@RolandPheasant RolandPheasant merged commit fd9083f into reactivemarbles:main Nov 20, 2023
3 checks passed
@JakenVeina JakenVeina deleted the to-observable-change-set-testing-rework branch November 21, 2023 10:13
JakenVeina added a commit that referenced this pull request Dec 5, 2023
JakenVeina added a commit that referenced this pull request Dec 5, 2023
Copy link

github-actions bot commented Dec 6, 2023

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants