I’m sharing some lessons learned from setting up the Ant build.xml file for my Robolectric test project. Hopefully they will save you the day or so of frustration I spent tracking down these issues. Running JUnit 4 from Ant The first challenge is getting Ant to properly run JUnit 4. I’m using Ant 1.8.1, and [...]
Monthly Archives: November 2010
What Eclipse files to check in with a new project
This info is available elsewhere on the net, but I am including it here because I have to look it up every time and I’m tired of it. Check in .project .classpath .settings Check in these files if you wish to share with the rest of the team: .settings/org.eclipse.jdt.ui.prefs – it contains the settings for [...]
Android Unit Testing in Robolectric, using Eclipse
I’m in the process of trying to set up Robolectric for unit testing Android applications. There’s lots of good reasons to consider this framework as an alternative to the standard Android instrumentation-based testing approach, but I will leave that to a future post once I’ve had more experience with the framework. Robolectric Android Unit Testing [...]

