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 -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -