Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

Android / IOS Unit testing / mocks / TDD / BDD etc

Hi Ben, just wondering if there's any plans to introduce testing into any of the tutorials?

There's quite a few tutorials out there for android, but very few of them really take into account any reasonable level of automated testing or TDD / BDD principles.

My limited experience with Mobile Dev at this point has shown me that much of the mobile development going on just doesn't take any of this into account and I think the community could use some good tutorials in the area :)

5 Answers

Ben Jakuben
STAFF
Ben Jakuben
Treehouse Teacher

Hi @Gary,

Great question. I haven't done any true TDD for Android myself, but I have done some automated testing using Robotium and Roboelectric, and I do plan on covering that in the future. There's also a new framework called FEST that looks very promising. It's by Jake Wharton who works at Square and wrote ActionBarSherlock, a super popular open-source Android library.

Side note: I'll be looking for some good Android TDD talks this year at conferences and will certainly pull in anything helpful.

Amit Bijlani
STAFF
Amit Bijlani
Treehouse Guest Teacher

@Gary Thanks for your feedback! We will keep this in mind when planning the next set of courses.

Your welcome, I haven't seen much in the way of decomposing and testing mobile applications (and I've looked, though not as much as I could).

It could be a good way of differentiating your products and getting more experienced devs onboard, I've found that basically someone either 'gets' why TDD is good and has learned how, or they just have no idea and need a kickstart to get them going.

Given i'm from a dotNet background that may or may not hold true in the java world.

Hi Ben,

Just curious to see if there's been any updates to this topic or if a particular testing framework has emerged as the leader in Android.

Many thanks!

Josh

Ben Jakuben
Ben Jakuben
Treehouse Teacher

Good question! There is nothing new that I'm aware of, though I haven't heard or read much about testing frameworks lately. I still see a lot of Robotium and FEST (but haven't used FEST myself yet).

Thanks Ben. FEST looks mighty interesting. I'll have a look and see what I come up with.

I also think including a solid course on Android testing as part of the Build An Android App program would be great, too.

Cheers!