Sunday, February 26, 2017
Sunday, October 30, 2016
Sunday, March 27, 2016
The minimal setup for Espresso to get up and running
This will be a very minimal demo of how to setup Espresso testing in your Android Project. First, create a new Android Project to demonstrates how barebones it is.
Add this to your app module build file (the one that is
testCompile 'junit:junit:4.12'androidTestCompile 'com.android.support.test:runner:0.4.1'androidTestCompile 'com.android.support.test:rules:0.4.1'androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.1'your build.gradle should look like this:
Your activity_main.xml should look something like this:
Create a MainActivityTest in your androidTest folder
To run the test right click on MainActivityTest then Run 'MainActivityTest'
Your test should pass like this:
To test if your test is indeed correctly setup change the text in the TextView to something else. You should receive a failed test like this:
If at this point your test still passes you shouldn't be happy that it passed. Something's wrong with your test.
It always help in my productivity to get the latest version of my work environment. Especially if it has speed enhancements. I have already also improved my Android Studio's speed especially when it comes to gradle build. It really adds up to my overall productivity and efficiency.
Friday, March 18, 2016
Hiring an Android specialist is the difference between having a great-awesome app and a buggy-mediocre app.
Some of the specialties you should look for when hiring an Android dev are:
(depending on your app's requirements)
- communication with servers
- working with images
- automated testing
- performance optimization
- handling data
- date manipulations and handling
- encryption handling
- social integration
These features can be implemented and made to look working on your app but you should watch out if they're implemented with best practices in mind that will not cause problems down the line. Most often than not I see clients who want their existing app saved from their demise because of bugginess, performance issues, mediocre design and it doesn't matter if the app is seemingly simple or complex. It was the result of hiring someone who just knows the basics in developing applications in Android.