SlideShare a Scribd company logo
+
JUnit for Android
Tool review
Rectangle++

Matt Porter
JUnit
History
 Junit is a unit testing tool for Java. Junit can also be used to test
android projects that are written in java, and can be very useful to
make sure your code is correct.
 Website http://junit.org

 Developers: Kent Beck, Erich Gamma, David Saff, Mike Clark

 Release date: September 4 2002 v1.0

 Current stable release 4.11 November 14, 2012

+
JUnit

Android

Monkey Tool
MonkeyRunner

Comparison

uiautomatorviewer

 Pros
 Written in Java, no need to learn new
language(monkeyrunner)
 Used in eclipse. No need to download anything
new(uiautomatorviewer)
 Test cases are as thorough as you make them, just doesn’t test
for crashes. (monkeytool)

 Cons
 You have to write your own tests, time consuming(pay testers)
 Internal, deploys with .apk (uiautomatorviewer)
 Can only test on devices you have available(utest)

+
JUnit
 Sustainability
 On the Tool’s end, it is a very popular tool and is very
sustainable with new release every few years.
 On the developers end maintain the JUnit code is
easy because it is written in java, and can be easily
ran right in eclipse. Tests are only as thorough as you
make it. The higher coverage you want, the harder it
becomes to maintain.

 Performance
 Great Performance. Again, Tests are as thorough as
you make it. The higher coverage you want, the
harder it becomes to maintain, but the better
performance you will have and the better your code
is tested.

 Pricing
 Free!!!

+
JUnit
Benefit/cost analysis
 Unit testing is a great way to test each function
and make sure your code is stable.
 JUnit is the easiest way to thoroughly test your
code. And is a widely accepted way of testing.

 JUnit is also free, which makes it even more used,
which makes more resources for information on
Junit.

+
JUnit
Compatibility
 Our team will definitely be using JUnit for our
application. Everyone will be able to use it
because it is written in java, which is the same
language we are developing in and everyone
know. There is no extra software to download
comes with android sdk so it can be used by
everyone.

+
JUnit

Set up tutorial
1. New Test Project

2. Add new JUnit Test Case

+
JUnit

Set up tutorial
3. Debug As Android Junit Test

4. Results

+
JUnit
In project demonstration
“Hello World”

+

More Related Content

PDF
CookpadTechConf2018-(Mobile)TestAutomation
PDF
Dicoding Developer Coaching #13: Android | Melakukan Testing secara Otomatis ...
PPTX
Flutter introduction
PDF
GTAC 2015
PPTX
Flutter
PDF
Using Git and GitHub Effectively at Emerge Interactive
PDF
Play with Testing on Android - Gilang Ramadhan (Academy Content Writer at Dic...
CookpadTechConf2018-(Mobile)TestAutomation
Dicoding Developer Coaching #13: Android | Melakukan Testing secara Otomatis ...
Flutter introduction
GTAC 2015
Flutter
Using Git and GitHub Effectively at Emerge Interactive
Play with Testing on Android - Gilang Ramadhan (Academy Content Writer at Dic...

Similar to J unit android (20)

PDF
JUnit Testing Framework A Complete Guide.pdf
PPTX
Android testing
PPTX
Testing Android Application, Droidcon Torino
PPTX
Jack borden jb471909_junit
PPTX
Jack borden jb471909_junit1
PDF
Are You Ready for Android L?
PPTX
Automation Proposal_V1.0
PDF
A Comprehensive Guide to Conducting Test Automation Using Appium & Cucumber o...
PPT
Junit Interview Questions-ppt
PDF
Android testing part i
PPTX
Benefits of using native automation tooling for mobile application testing.pptx
PPTX
Александр Качур - "Android и MeeGo: автоматизация тестовых сценариев"
PDF
J.unit.action.2
PPTX
Dev fest2015androidunittestingbyoyewaleademolasao
PPTX
Automation testing & Unit testing
PPT
Android automation tools
PDF
A Comprehensive Guide to Efficiently Writing and Implementing iOS Unit Tests.pdf
PPTX
100 effective software testing tools that boost your Testing
PDF
Testing on Android
PDF
Introduction To UnitTesting & JUnit
JUnit Testing Framework A Complete Guide.pdf
Android testing
Testing Android Application, Droidcon Torino
Jack borden jb471909_junit
Jack borden jb471909_junit1
Are You Ready for Android L?
Automation Proposal_V1.0
A Comprehensive Guide to Conducting Test Automation Using Appium & Cucumber o...
Junit Interview Questions-ppt
Android testing part i
Benefits of using native automation tooling for mobile application testing.pptx
Александр Качур - "Android и MeeGo: автоматизация тестовых сценариев"
J.unit.action.2
Dev fest2015androidunittestingbyoyewaleademolasao
Automation testing & Unit testing
Android automation tools
A Comprehensive Guide to Efficiently Writing and Implementing iOS Unit Tests.pdf
100 effective software testing tools that boost your Testing
Testing on Android
Introduction To UnitTesting & JUnit
Ad

Recently uploaded (20)

PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
KodekX | Application Modernization Development
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
A Presentation on Artificial Intelligence
PPTX
Cloud computing and distributed systems.
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Empathic Computing: Creating Shared Understanding
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
Big Data Technologies - Introduction.pptx
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Modernizing your data center with Dell and AMD
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
KodekX | Application Modernization Development
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Per capita expenditure prediction using model stacking based on satellite ima...
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
A Presentation on Artificial Intelligence
Cloud computing and distributed systems.
MYSQL Presentation for SQL database connectivity
Advanced methodologies resolving dimensionality complications for autism neur...
Reach Out and Touch Someone: Haptics and Empathic Computing
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Network Security Unit 5.pdf for BCA BBA.
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
NewMind AI Monthly Chronicles - July 2025
Empathic Computing: Creating Shared Understanding
Diabetes mellitus diagnosis method based random forest with bat algorithm
Big Data Technologies - Introduction.pptx
Digital-Transformation-Roadmap-for-Companies.pptx
Modernizing your data center with Dell and AMD
Ad

J unit android

  • 1. + JUnit for Android Tool review Rectangle++ Matt Porter
  • 2. JUnit History  Junit is a unit testing tool for Java. Junit can also be used to test android projects that are written in java, and can be very useful to make sure your code is correct.  Website http://junit.org  Developers: Kent Beck, Erich Gamma, David Saff, Mike Clark  Release date: September 4 2002 v1.0  Current stable release 4.11 November 14, 2012 +
  • 3. JUnit Android Monkey Tool MonkeyRunner Comparison uiautomatorviewer  Pros  Written in Java, no need to learn new language(monkeyrunner)  Used in eclipse. No need to download anything new(uiautomatorviewer)  Test cases are as thorough as you make them, just doesn’t test for crashes. (monkeytool)  Cons  You have to write your own tests, time consuming(pay testers)  Internal, deploys with .apk (uiautomatorviewer)  Can only test on devices you have available(utest) +
  • 4. JUnit  Sustainability  On the Tool’s end, it is a very popular tool and is very sustainable with new release every few years.  On the developers end maintain the JUnit code is easy because it is written in java, and can be easily ran right in eclipse. Tests are only as thorough as you make it. The higher coverage you want, the harder it becomes to maintain.  Performance  Great Performance. Again, Tests are as thorough as you make it. The higher coverage you want, the harder it becomes to maintain, but the better performance you will have and the better your code is tested.  Pricing  Free!!! +
  • 5. JUnit Benefit/cost analysis  Unit testing is a great way to test each function and make sure your code is stable.  JUnit is the easiest way to thoroughly test your code. And is a widely accepted way of testing.  JUnit is also free, which makes it even more used, which makes more resources for information on Junit. +
  • 6. JUnit Compatibility  Our team will definitely be using JUnit for our application. Everyone will be able to use it because it is written in java, which is the same language we are developing in and everyone know. There is no extra software to download comes with android sdk so it can be used by everyone. +
  • 7. JUnit Set up tutorial 1. New Test Project 2. Add new JUnit Test Case +
  • 8. JUnit Set up tutorial 3. Debug As Android Junit Test 4. Results +