in Android, Code, Geeklife, Screencasts, Software Development

[SCREENCAST] How to do Unit Testing on Android with Eclipse

I was going to make a tutorial, but then I figured that making a video would be a much better way to show this.
As for the code that you could grab from a tutorial, there’s a link at the end of the post with all the code shown in the video demo.

The video demo covers how to create and run Unit Test classes for regular Java classes on Android, and also how to create and run Unit Test classes that test classes that depend on Android “Context” or “Activity” objects.

If your Android unit tests are not running because of frustrating error messages, the time spent watching this video will save you a lot of reading and headaches.

Check the screencast after the break



How to Unit Test on Android [SCREENCAST]
Uploaded by wedoit4you. – Explore more science and tech videos.

Download the Eclipse Project sources

Write a Comment

Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  1. Wow. That was a bit more involved than unit testing could be! Apparently the Android Unit Testing in Eclipse was not developed using unit testing.

    You gave a good presentation since I can take advantage of the pause button.

  2. That was fabulous, thanks very for posting it. Would love to read about your prices of creating screen casts.

Webmentions

  • Android: How to test a custom view? March 10, 2011

    […] Here’s a ScreenCast I made on how I got Unit Tests to work. Simple Unit Tests and more complex unit tests that depend on having a reference to Context or Activity objects. http://www.gubatron.com/blog/2010/05/02/how-to-do-unit-testing-on-android-with-eclipse/ […]

  • Android: How to test a custom view? - Tutorial Guruji March 10, 2011

    […] Here’s a ScreenCast I made on how I got Unit Tests to work. Simple Unit Tests and more complex unit tests that depend on having a reference to Context or Activity objects. http://www.gubatron.com/blog/2010/05/02/how-to-do-unit-testing-on-android-with-eclipse/ […]

  • Android: How to test a custom view? - ErrorsFixing March 10, 2011

    […] Here’s a ScreenCast I made on how I got Unit Tests to work. Simple Unit Tests and more complex unit tests that depend on having a reference to Context or Activity objects. http://www.gubatron.com/blog/2010/05/02/how-to-do-unit-testing-on-android-with-eclipse/ […]

  • Fixed Best practices for unit testing Android apps #dev #it #asnwer | Good Answer March 10, 2011

    […] http://www.gubatron.com/blog/2010/05/02/how-to-do-unit-testing-on-android-with-eclipse/ […]

  • Testing Android Apps | Sam Snyder March 10, 2011

    […] How to Do Unit Testing on Android with Eclipse – a video demo about creating and running Unit Test classes for regular Java classes on […]

  • social organizations » Blog Archive » Top 5 Android Programming Posts for The Week March 10, 2011

    […] How to do Unit Testing on Android with Eclipse … […]

  • Brew Beer » Blog Archive » Top 5 Android Application Development Posts for The Week March 10, 2011

    […] How to do Unit Testing on Android with Eclipse … […]

  • Top 5 Android Programming Posts for The Week « webmastercertificates March 10, 2011

    […] How to do Unit Testing on Android with Eclipse … […]

  • » Top 5 Android Programming Posts for The Week mobile computing solutions March 10, 2011

    […] How to do Unit Testing on Android with Eclipse … […]

  • irsc edu » Top 5 Android Programming Posts for The Week March 10, 2011

    […] How to do Unit Testing on Android with Eclipse … […]

  • bookstore » Blog Archive » Top 5 Android Programming Posts for The Week March 10, 2011

    […] How to do Unit Testing on Android with Eclipse … […]

  • social utility » Top 5 Android SDK Development Posts for The Week March 10, 2011

    […] How to do Unit Testing on Android with Eclipse … […]

  • Top 5 Android Application Development Posts for The Week March 10, 2011

    […] How to do Unit Testing on Android with Eclipse … […]

  • trainingemployees » Blog Archive » Top 5 Android SDK Development Posts for The Week March 10, 2011

    […] How to do Unit Testing on Android with Eclipse … […]

  • Happiness Mind » Blog Archive » Top 5 Android Programming Posts for The Week March 10, 2011

    […] How to do Unit Testing on Android with Eclipse … […]

  • Top 5 Android SDK Development Posts for The Week « Living Lies March 10, 2011

    […] How to do Unit Testing on Android with Eclipse … […]

  • social platform - Top 5 Android Application Development Posts for The Week March 10, 2011

    […] How to do Unit Testing on Android with Eclipse … […]

  • Top 5 Android Application Development Posts for The Week « computer network cabling March 10, 2011

    […] How to do Unit Testing on Android with Eclipse … […]

  • managementtraining » Blog Archive » Top 5 Android SDK Development Posts for The Week March 10, 2011

    […] How to do Unit Testing on Android with Eclipse … […]

  • training tables » Top 5 Android SDK Development Posts for The Week March 10, 2011

    […] How to do Unit Testing on Android with Eclipse … […]

  • sciencethirdgrade » Blog Archive » Top 5 Android SDK Development Posts for The Week March 10, 2011

    […] How to do Unit Testing on Android with Eclipse … […]

  • sensible golf » Blog Archive » Top 5 Android SDK Development Posts for The Week March 10, 2011

    […] How to do Unit Testing on Android with Eclipse … […]

  • Home Beer Brewing Equipment » Blog Archive » Top 5 Android SDK Development Posts for The Week March 10, 2011

    […] How to do Unit Testing on Android with Eclipse … […]

  • [SCREENCAST]How to do Unit Testing on Android with Eclipse « RussenReaktor’s Weblog March 10, 2011

    […] [SCREENCAST]How to do Unit Testing on Android with Eclipse ??? 2, 2010 Posted by russenreaktor in android, programming. Tags: android, unitests trackback Source: How to do Unit Testing on Android with Eclipse – Gubatron.com. […]