I have been a big fan of Selenium ever since I first used it a few years back. It takes so much of the pain out of testing web pages and with its Maven integration a very complex web app can be fully tested automatically every night. So naturally, I am pretty excited about Robotium. Robotium does for Android testing what Selenium has done for web based testing. Here’s the official line:
Robotium is a test framework created to make it easy to write powerful and robust automatic black-box test cases for Android applications. With the support of Robotium, test case developers can write function, system and acceptance test scenarios, spanning multiple Android activities.
Robotium is integrated with Maven via Maven for Android so all of your tests can be automated. Check out the video below for an example of how to get started or this example from Michal Szczepanik at Bitbar.
#1 by John Bäckstrand on October 22, 2010 - 8:26 am
Robotium is not really for unit-testing though 🙂
They call it black-box tests. I would call it UI-tests I think, but not unit tests.
#2 by Stephen Downey on October 22, 2010 - 9:20 am
Thats a fair point, it is more UI testing than unit. I will update the title of the post.