paint-brush
gfxinfo + UI Automator + Kotlin = Automated Jank Testsby@akperkins1
2,712 reads
2,712 reads

gfxinfo + UI Automator + Kotlin = Automated Jank Tests

by Andre Perkins4mJune 9th, 2017
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Automated tests are king. Reading any modern programming book like <a href="https://www.amazon.com/Working-Effectively-Legacy-Michael-Feathers/dp/0131177052" target="_blank">Working Effectively with Legacy Code</a> and it is obvious to see why coders just can’t get enough. Usually, the main focus of our automated tests is on the correctness of our business logic. However, there is one form of automated testing that is maybe too oft neglected and that is the measuring of your app’s Jank. Jank is the term that is used when your app drops frames usually due to poor performance. Analogous to how unit test provide quick feedback about correctness, wouldn’t it be great if we had performance test that provides quick feedback about Jank (or hopefully, lack thereof)? Here is a post on how we can combine <a href="http://kotlinlang.org/" target="_blank">Kotlin</a>, <a href="https://developer.android.com/training/testing/ui-testing/uiautomator-testing.html" target="_blank">UI Automator</a> (or any UI automation tool) and <a href="https://developer.android.com/training/testing/performance.html" target="_blank">gfxinfo</a> to create such a test.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - gfxinfo + UI Automator + Kotlin = Automated Jank Tests
Andre Perkins HackerNoon profile picture
Andre Perkins

Andre Perkins

@akperkins1

L O A D I N G
. . . comments & more!

About Author

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite