Scribe-Android icon indicating copy to clipboard operation
Scribe-Android copied to clipboard

Write tests for the functions in About Util

Open angrezichatterbox opened this issue 8 months ago • 3 comments

Terms

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 :)

angrezichatterbox avatar Apr 09 '25 04:04 angrezichatterbox

Hi, @angrezichatterbox would love to take this on. Can you explain this issue a bit more? and what will be the expected results?

DeleMike avatar Apr 11 '25 08:04 DeleMike

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 😄

angrezichatterbox avatar Apr 11 '25 09:04 angrezichatterbox

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!

DeleMike avatar Apr 11 '25 09:04 DeleMike