Challenges in writing roboelectric tests
13
ROBOLECTRIC TESTS how-to, challenges & everything else
-
Upload
blrdroid -
Category
Technology
-
view
705 -
download
0
description
Ashish from Codelearn explains what is Roboelectric and how it can be used to write Test Cases and do Test Driven Development, while also telling how Codelearn used Roboelectric Tests to build a training module for Android development
Transcript of Challenges in writing roboelectric tests
ROBOLECTRIC TESTShow-to, challenges & everything else
WHAT IS ROBOLECTRIC
GETTING STARTED
• Create Java project
• Add Robolectric jars
• Add android & junit jars
• Add Android project as dependency
• Create junit run configuration
ROBOLECTRIC ELEMENTSwhich we used for codelearn.org tutorial tests
@RunWith
Robolectric.buildActivity(myClass)
Robolectric.shadowOf(..)
AsyncTask testing
getNextStartedActivity(..) quirk
Network calls
ANNOUNCEMENT