Posts Tagged ‘Unit testing’

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 [...]

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 [...]

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 [...]

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. [...]

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 [...]

A Mobile Build System

Posted: April 10, 2010 in Android
Tags: , ,

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 [...]

TestNotes-Stephen Ng

Posted: April 9, 2010 in Android
Tags: ,

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.

Testing Tip 102

Posted: February 15, 2010 in Android
Tags:

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 [...]

UDD vs TDD

Posted: December 31, 2009 in Android, Java, Mobile
Tags: ,

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, Mobile
Tags: ,

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 [...]