Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialTest Test
21,581 PointsGoogle: you don't have to write espresso tests manually anymore:) Things got much easier. Check here...
One of the biggest things at Google I/O 2016 in section "Android Development Tools" was Espresso Test Recorder (as part of Android Studio), which allows developers make espresso tests by just interacting with the app. What it basically means is: you launch the app, interact with it in the way you want (type texts, click buttons etc. just like regular user would) and Espresso Test Recorder will automatically write tests for you on actions you performed. You can then modify the code if you want. That's it. No need to write everything yourself, guys, this is amazing:) Check the video from Google I/O here (start with 22:30): https://www.youtube.com/watch?v=csaXml4xtN8&index=23&list=PLWz5rJ2EKKc8jQTUYvIfqA9lMvSGQWtte
1 Answer
Arturo Antonio Mejia Marmol
12,932 PointsHi Konstantin,
I am completely agree with you, the test runner is great tool, but it is not a silver bullet. It doesn't have all the matches available yet, and in some complex situations you are going to write or adapt the tests generated by the tool by yourself you can find more info here https://youtu.be/JRkDVvB106k.
If you want to find more info about Espresso this is a great place. https://google.github.io/android-testing-support-library/docs/espresso/
Test Test
21,581 PointsTest Test
21,581 PointsYou can also check these resources: http://tools.android.com/tech-docs/test-recorder http://stackoverflow.com/questions/37316679/how-to-enable-espresso-test-recording