News Line (Showing Articles)
The news line a simple app that shows most popular news articles using Newyork API. It provides basic data filter options.
The apk file is uploaded to diawi.com. Install directly using the link
https://i.diawi.com/RYFUb8
You may see warning messages related to unknown or harmful app. They message will warn you because we are not downloading the APK from Google Play Store. Just Hit allow, Download Anyway or whatever posstive message appear to install the app.
After app is installed. NewsLink App will appear within device Apps List.
Basic Requirement:
- JDK
- Latest Android Studio IDE
- Emulator or Physical Device (Android OS >= 26)
Clone the repository using Android studio IDE (recommended)
- Master Branch
https://github.com/Zaid-Mirza/newsLine.git
To run the unit tests independently,
Open Test folder as shown below, there are two files create to test the basic functionality for sake of this assessment.
Lets start with ArticleTest
. This contains a basic test to check whether the fetchArticles
functions inside the ArticleRepository
is working.
- Click the Green triangle button on left hand side of the function body
-
Here you can change the values of parameters passed to
verifyArticlesResults
method to test different scenarios. -
When tests finished running. You may see following view within Android Studio
-
Above image shows that tests are finished and coverage reports generated by Android Studio. If you want to open coverage reports as Html page. You can find all reports generate at path below:
Open Projecr Root -> app -> build -> reports -> tests -> testDebugUnitsTest