Your SlideShare is downloading. ×
J unit android
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Saving this for later?

Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime - even offline.

Text the download link to your phone

Standard text messaging rates apply

J unit android

80
views

Published on

Review of JUnit for Android

Review of JUnit for Android

Published in: Technology

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
80
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 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 +
  • 9. JUnit In project demonstration “Hello World” +