Write tests for the functions in About Util
Terms
- [x] I have searched open and closed feature requests
- [x] I agree to follow Scribe-Android's Code of Conduct
Description
This issue deals with writing tests for the following functions
- Non-UI Functions
onShareScribeClick(context: Context)
onRateScribeClick(context: Context)
onMailClick(context: Context)
- Composable Functions
getCommunityList(...)
getFeedbackAndSupportList(...)
getLegalListItems(...)
Contribution
Happy to help anyone fix this issue or take this up myself at some point :)
Hi, @angrezichatterbox would love to take this on. Can you explain this issue a bit more? and what will be the expected results?
Hey @DeleMike Thanks for taking it up :) 🚀
The issue deals with writing tests for the functions in about util. There are functions that require contexts which are instrumentation tests or could be tried using roboelectric. The tests involving the lists could be unit tests are could be checked whether we are getting the appropriate lists, whether the lists are empty,The items contain expected fields like title, icon, and onClick.
Happy to answer any more queries you would have 😄
okay😄 I will do some research and come back here if I have more questions, or else we will continue the discussion via the PR.
Thanks!