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
Fix library instrumented tests #27
Fix library instrumented tests #27
Conversation
library/src/androidTest/java/com/alexstyl/contactstore/ContactStoreTestBase.kt
Outdated
Show resolved
Hide resolved
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.
Thank you for the contribution again @tatocaster. It's a bit embarasing to have tests failing as I probably forgot to run the tests before pushing some changes it seems.
I am currently not on my laptop and I can properly check the PR later in the day (if not tomorrow morning), as I need to see what exactly is failing to say if this is the right solution or not.
It would help if you could update the PR with the log of what is failing. It's totally fine if it is too much hussle.
library/src/androidTest/java/com/alexstyl/contactstore/ContactStoreTestBase.kt
Outdated
Show resolved
Hide resolved
This is the output from
|
This is the output from
|
The difference between objects are: |
@tatocaster Seems like that is the cause of the failure. The PS: I had a quick look on the web and noticed that the 'lookupKey' is not as permanent as the documentation says. Could you update |
Regarding the |
Should we leave it like that or?
Yeah, I noticed them too. Thought it was part of the design. I was thinking the same and I wanted your review. Will update asap, thanks |
Let's change it so that the new MutableContact takes the |
@tatocaster heads up: I have Ignored the failing tests on main. |
All tests are passing! ✅ |
Awesome. Seems 💯 Could you please squash your first 3 commits? I do not think there is a need to have those in git history as the real fix is the commits you pushed today. After that I will merge to main 🚀 PS: Having the tests run via Github Actions would be amazing! I haven't used Actions at all, so I would be really keen to see how it works |
use `equalContents` custom matcher to compare contact objects Fix DSL test - add fields to remove null from the result Fix instrumented tests convert PartialContact to MutableContact to pass the object equality check
6cfeef8
to
5320501
Compare
remove unused Ignore imports
8d63581
to
5bbd00b
Compare
@alexstyl Done! |
@tatocaster That is alright for now. The scope of the PR was to fix the tests and you did. 👏 The imports and coding style is something for an other PR. I will be creating some Github issues today for things to be done. If you are looking for more contributions until then, I think that having unit and Android tests running on PRs would be the most valuable for now. Merging this to main. Once again thanks a ton for the contribution 💯 |
ContactStoreDSLKtTest.kt
, matched fieldsassertContactUpdated
- compare object contents