This is not the tool itself but the Gradle build GUI showing the tool itself. Because the gradle build lifecycle is tdd based we get that as a foundation and I am just integrating some tools on top of the gradle android plugin such as code analysis tools robolectric, etc. How much dev time are [...]
Posts Tagged ‘Unit testing’
Android TDD Build Tool
Posted: January 14, 2011 in Android, JavaTags: Behavior Driven Development, Build Management, Emulator, Java, Test-driven development, Unit testing
Agile Android-In-Anger
Posted: January 4, 2011 in Android, JavaTags: Agile software development, Dalvik (software), Dalvik VM, Emulator, Java Virtual Machine, Test-driven development, Unit testing
There is a tradition in Java when trying to teach a group to relearn coding patterns or best practices to use the -In-Anger in the title. There are two ways essentially, one is to mock everything so as to be able to use TDD via Junit4 testing in a JVM outside of the Android emulator [...]
Android Agile Patterns
Posted: December 21, 2010 in Android, JavaTags: Android, android-mock, Apache Ant, Behavior Driven Development, Emulator, instinct, Mock object, Original equipment manufacturer, robolectric, robotium, Test-driven development, Unit testing
You might be wondering why I would spend so much time on integrating things via an ANT or Gradle build tool. The whole idea was to be able to do full application testing from beginning to end similar to the way OEMs do framework testing. In other words the developer should be able to run [...]
Agile Android Development
Posted: October 11, 2010 in Android, JavaTags: Android, Dalvik, Mock object, Unit testing
Gee, be nice if testing was easier and with the influx of new frameworks does not make it any easier. The major reason why the average android developer does not unit test from the beginning(TDD) is that in any Virtual Machine mobile environment you run into situations where certain objects are not accessible to test. [...]
Junit Test Runner for ANT
Posted: September 5, 2010 in AndroidTags: Android, Development Tools, JUnit, Unit testing
One of the founders of Zutubi came up with extending the JUnit TestRunner used in Android to generate xml reports stored on the SD card that than can be pushed down to a desktop folder using an ant task. The blog post is here and github project page is here. Thus you can now get [...]
Through my exploration of attempts of an all inclusive ANT build script for Android development I have come to a set of contrary conclusions. These conclusions while they run counter to the status quo do in fact indicate that some Enterprise and Web techniques can be re-used. In a mobile system we often have to [...]
A Google Engineer, Stephen NG, has produced some notes on Android Unit and Mock testing. The biggest change is that the Android SDK now supports powermock library use in unit testing.
If you have not done already move all your trace files and hprof dump file programming commands to your testcases class. why? 1. Because its called in your Testcase you no longer have to comment it out to publish your application. 2. You can implement a special ant task that triggers or runs that TestCase [...]
You do know if you find someone advocating TDD for Mobile Applications and UDD for the underlying OS development to run like hell, right? Why? Because User Driven Development where the unit tests are not set in stone until middle or end of development is what actually works for mobile application development. Think about it, [...]
Build Apps the Android 2 Way
Posted: November 22, 2009 in Android, Java, MobileTags: Android, Unit testing
Build tip secret: 1. Install Sdk components the android 2.0 way, ie andorid sdk 1.5, 1.6, and 2.0 in same install folder. 2. use build.template as your build template. 3. Copy android_rules.template main node from Android 2.0/templates into your build file and set setup import to false. 4. Set build.porperies extra values the Android 2.0 [...]


