-
Notifications
You must be signed in to change notification settings - Fork 93
AboutScreen unit test #420
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
Conversation
Thank you for the pull request! ❤️The Scribe-Android team will do our best to address your contribution as soon as we can. If you're not already a member of our public Matrix community, please consider joining! We'd suggest using Element as your Matrix client, and definitely join the |
Maintainer ChecklistThe following is a checklist for maintainers to make sure this process goes as well as possible. Feel free to address the points below yourself in further commits if you realize that actions are needed :) |
|
Thanks so much for the PR here, @catreedle! We'll try to get to the review in the coming days :) |
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.
@catreedle Great work on the tests. This is something you could look into after which we could merge this PR.
Could you try running the command ./gradlew jacocoTestReport
We would be able to see the test report inside the Scribe-Android/app/build/reports/jacoco/html
If you open the index.html and open the click on the be.scri.about and AboutUtil you would be able to see which all parts you missed.
@andrewtavis Should we aim for 100 % percentage coverage for all the files or a certain range initially.
|
Thank you @angrezichatterbox |
What's the current coverage percent? I think we can have it be for the current percent and then make an issue to improve it to 100%? |
It currently 40 percent |
|
Let's definitely make an issue for it then and not worry to hit 100% for now :) |
|
#411 has been merged in and we're ready to work on other PRs, @catreedle :) Please let us know if you need assistance with the merge conflicts here! |
hey @andrewtavis sorry I just read this. looking into it now |
|
hi @andrewtavis @DeleMike @angrezichatterbox |
|
Thanks for getting to the conflicts, @catreedle! Would be great if we could fix the failing instrumentation tests, but I'm sure @angrezichatterbox and @DeleMike can support with that 😊 |
|
Hey @catreedle |
|
hi @angrezichatterbox @DeleMike |
|
Hii @catreedle, thank you! I will check it out :) |
|
Hey @catreedle It looks good to me. We could merge this in and create more issues. This could be an example for others to make further test PR to the project so it would be helpful for this to get merged. |
andrewtavis
left a comment
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.
All's looking great to me, @catreedle! Thanks so much for the focus on tests! Great to have such a solid team working on Scribe-Android 😊
Contributor checklist
./gradlew lintKotlin detekt testcommand as directed in the testing section of the contributing guideDescription
This PR adds new file /src/test/kotlin/be/scri/ui/screens/about/AboutUtilTest.kt to test the functionality of AboutScreen also refactor the code in ShareHelper.kt and AboutUtil.kt
Related issue