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 -

What is happening when Matlab is starting a "parallel pool"? -

php - Cannot override Laravel Spark authentication with own implementation -