Upload
oyewale-ademola
View
92
Download
0
Embed Size (px)
Citation preview
_Android Unit Testing_DevFest-2015
What is Testing?
Software Testing is an investigation used to provide stakeholders about the quality of the product/service under test.
Why should we automate Tests?
-- It gives us confidence to make changes.
-- They are the guardians of our code.
What types can we use?
1. Unit tests 2. Integration tests 3. Acceptance tests 4. Performance tests
What is Unit Testing?
A unit test is a test that can verify that all of the code in exactly one non-trivial class is working correctly. If this test fails, we know that the problem is located in that class being tested.
Android Unit Testing Frameworks…
-- Android testing framework
-- Roboelectric
-- Robotium
Unit Testing Like Insurance Policies.
A lot of Effort for something you will never use.
They cover what you use in advance.
Let’s get our hands DIRTY!
Some Android
Projects...1.RhymeCity
2.Android-test-demo
3.android-unit-tests
“Start testing and let us all sleep well.”
Remember ::
It should be the first line of defense.
No side effects (no I/O, network, database etc.).
ReferencesOfficial Android Developer Docs.
Hello, Startup by Kevgeniy Brikman 1st ed.
Android Unit Testing Framework Overview https://www.captechconsulting.com/blogs/android-unit-testing---framework-overview
Android I/O 2015 Code Labhttps://io2015codelabs.appspot.com/codelabs/android-studio-testing#1
Software_Testing ( https://en.wikipedia.org/wiki/Software_testing )