Skip to content

Surface Duo - Widget

Compare
Choose a tag to compare
@VSC-Service-Account VSC-Service-Account released this 21 Sep 09:01
· 9 commits to main since this release
5be13fe
[Widget] Added unit tests and instrumentation tests to the Widget Sam…

…ple (#40)

* [Widget] Added unit tests and instrumentation tests to the Widget Sample, split logic from network and parsing

- Refactored tasks.withType(KotlinCompile) to be included in allprojects so it will work also for tests
- Separated the networking logic from the parsing logic using NetworkFeed object
- Moved rssItems data to the WidgetFactory to use the object's methods just as helper functions
- Created a BaseSimpleApi interface so RssSimpleApi can be mocked with a test api
- Fixed stripHtml special character regex
- Added unit tests for networking logic with a mocked web server
- Added UI tests for the changing the feed url
- Added instrumentation tests for the xml parsing