Skip to content

This repository contains a collection of projects and information regarding testing in android

License

Notifications You must be signed in to change notification settings

devrath/automatic-octo-fiesta

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

automatic-octo-fiesta

Banner

𝙸𝚗𝚝𝚛𝚘𝚍𝚞𝚌𝚝𝚒𝚘𝚗 💡

🏷️ By using kotlin programming language, This is a clean architecture developed to demonstrate the usage of clean code.
🏷️ There are multiple projects that contains samples of the code used for testing & learning many concepts of unit testing.
🏷️ There is one main full fledge application where concepts are implemented for demo.


Banner

𝙳𝚘𝚌𝚞𝚖𝚎𝚗𝚝𝚊𝚝𝚒𝚘𝚗 𝚊𝚗𝚍 𝚕𝚎𝚊𝚛𝚗𝚒𝚗𝚐𝚜 🧪

Useful Test Libraries Description Online link
Google fluent assertions Truth - Fluent assertions for Java and Android website
MockWebServer This is used to simulate the remote API locally for instrumentation tests website
MockK Helpful for writing unit tests similar to espresso with pure kotlin based DSL website
About Unit Testing Test doubles Templates in test Test Patterns Code coverage
Why testing is Essential What is a test double, why we need it AAA-Templete Robot Pattern JaCoCo
Testing Pyramid What is mock
Segregating the tests in android What is stub
Good practices in testing What is fake
Annotations Explained What is spying
Rules used in testing Testing Coroutines Using local server
What is InstantTaskExecutorRule Using runBlockingTest MockWebServer
What is ActivityTestRule Using TestCoroutineDispatcher
Why do we need a Dispatcher as a rule to test coroutines

𝙲𝚊𝚜𝚎 𝚂𝚝𝚞𝚍𝚒𝚎𝚜

𝙾𝚞𝚛 𝙳𝚎𝚖𝚘 𝙰𝚙𝚙𝚕𝚒𝚌𝚊𝚝𝚒𝚘𝚗 𝚍𝚎𝚜𝚌𝚛𝚒𝚙𝚝𝚒𝚘𝚗

𝙲𝚘𝚗𝚝𝚛𝚒𝚋𝚞𝚝𝚎 🙋‍♂️

Read contribution guidelines for more information regarding contribution.

𝙵𝚎𝚎𝚍𝚋𝚊𝚌𝚔 ✍️

Feature requests are always welcome, File an issue here.

𝙵𝚒𝚗𝚍 𝚝𝚑𝚒𝚜 𝚙𝚛𝚘𝚓𝚎𝚌𝚝 𝚞𝚜𝚎𝚏𝚞𝚕 ? ❤️

Support it by clicking the ⭐ button on the upper right of this page. ✌️

𝙻𝚒𝚌𝚎𝚗𝚜𝚎 Licence 💳

This project is licensed under the Apache License 2.0 - see the LICENSE file for details