The Art of Agile Development, by James Shore and Shane Warden is an excellent book. I recently read it and found it inspiring. Whilst many of the practices don’t work for a lone developer, test driven development seems like it will.
So now I’m trying to set up unit testing for when I’m developing Android appications. However, I found the guidance on the Android developer website unclear. Having spent some time getting frustrated at my apparent inability to follow simple instructions I made it past the first step. I share that first step in the hope that I can help others.
The developer notes give examples using relative paths. I found that this didn’t work. Here is the relevant folder structure for my application, which is called Aoide.
~\ Android\ aoide\ AndroidManifest.xml build.properties build.xml default.properties local.properties proguard.cfg bin\ gen\ libs\ res\ src\
The Testing Fundamentals page shows that I want to create a
tests folder in the
aoide folder. I found this command, run from the Android directory, worked for me:
tools/android create test-project -m ~/Android/aoide \ -n AoideTest -p ~/Android/aoide/tests
Now to figure unit tests…