-
Notifications
You must be signed in to change notification settings - Fork 19
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
test: Remove moq library #141
Conversation
@askpt I'm fine with this going a head, thanks for doing it 👍🏻 Are you able to look into the failing steps |
Codecov Report
@@ Coverage Diff @@
## main #141 +/- ##
==========================================
- Coverage 94.64% 93.91% -0.74%
==========================================
Files 20 20
Lines 542 542
Branches 39 39
==========================================
- Hits 513 509 -4
- Misses 16 20 +4
Partials 13 13 see 1 file with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Aah looks like the build is breaking for other reasons, ill take a look this evening after work |
@benjiro The library is not fully removed in this PR. There are still a few tests missing that have more advanced scenarios. I don't mind fixing the build issues and creating a new issue for these tests. |
Signed-off-by: André Silva <[email protected]>
Signed-off-by: André Silva <[email protected]>
Signed-off-by: André Silva <[email protected]>
Signed-off-by: André Silva <[email protected]>
Signed-off-by: André Silva <[email protected]>
Signed-off-by: André Silva <[email protected]>
Signed-off-by: André Silva <[email protected]>
Signed-off-by: André Silva <[email protected]>
Signed-off-by: André Silva <[email protected]>
Signed-off-by: André Silva <[email protected]>
If you rebase off
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for doing this and great work with the adapted tests so far - I've just had a look and all the assertions we previously had in place are still present.
Signed-off-by: André Silva <[email protected]>
Signed-off-by: André Silva <[email protected]>
Signed-off-by: André Silva <[email protected]>
Signed-off-by: André Silva <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me! For me it would be ok to tackle the remaining test cases in a follow up - @benjiro what do you think?
Pushed more tests now. Only a handful missing. We can merge as it is. |
Thanks! Regarding the failing codecov check: This seems to be caused by a different behavior of NSubstitute vs Moq. The difference is in the |
These tests are the ones that miss the transition to NSubstitute:
I was trying to play around but they are failing because the sequence is not respected. See output:
Actually received matching calls in this order:
|
Thanks for your efforts @askpt, I'll look at the remaining tests tomorrow. I'll merge this or as is now |
Remove Moq library
Moq
library from the test projects. Now it usesNSubstitute
.Related Issues
Fixes #140
Notes
Follow-up Tasks
How to test