How to run espresso tests on already existing app on device -


i have small test , apk of app. how can run test on app?

let's have small test:

@runwith(androidjunit4.class) @largetest public class helloworldespressotest {  @rule public activitytestrule<mainactivity> mactivityrule =         new activitytestrule(mainactivity.class);  @test public void listgoesoverthefold() {     onview(withtext("hello world!")).check(matches(isdisplayed())); }} 


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -

Python Tornado package error when running server -