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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -