Skip to content Skip to sidebar Skip to footer
Showing posts with the label Unit Testing

Robolectric Unit Test Failing With Android Studio 2.3 Updates

All my Unit Test started throwing this error: No such manifest file: build\intermediates\bundles\de… Read more Robolectric Unit Test Failing With Android Studio 2.3 Updates

Android Unit Test Spannablestringbuilder

One of my classes uses SpannableStringBuilder and I need to write unit test code for it. This class… Read more Android Unit Test Spannablestringbuilder

Robolectric 3 With Fabric Crashlytics

I am trying to ShadowClass Crashlytics/Fabric so that Robotlectric 3 tests do not fail. What I hav… Read more Robolectric 3 With Fabric Crashlytics

Assets Folder In Android Studio Unit Test

I have a Gradle project with the following structure: project/ src/ androidTest/ … Read more Assets Folder In Android Studio Unit Test

Set Spinner Item With Espresso

I want to know how to set an item in a spinner in espresso testing. onView(withId(R.id.spinner_gend… Read more Set Spinner Item With Espresso

Gradle Android Unit Tests That Depend On An 'aar'

Want to be able to depend on an AAR for my unit tests in a Gradle-Android project. I do not want t… Read more Gradle Android Unit Tests That Depend On An 'aar'

Should Unit Test Use 'throws Exception' By Default?

In other words should I append throws Exception to all or most of my unit tests? When you generate … Read more Should Unit Test Use 'throws Exception' By Default?

How Can I Swap Test Doubles At The Scope Of An Activity Or A Fragment Using Dagger 2?

EDIT: Watch out! I have deleted the old repository reffered to in this question. See my own answer … Read more How Can I Swap Test Doubles At The Scope Of An Activity Or A Fragment Using Dagger 2?

Using Android Sdk Classes In Unit Tests

I started creating unit tests for my Android project. I understand the difference between unit test… Read more Using Android Sdk Classes In Unit Tests

Android Studio 2.1: Error: Package Org.junit Does Not Exist

Update: Its a bug and it's been reported, please star: https://code.google.com/p/android/issues… Read more Android Studio 2.1: Error: Package Org.junit Does Not Exist

You Need To Use A Theme.appcompat Theme --> In Unit Test

I know this topic has been discussed but it is a little different here: App works fine Error is di… Read more You Need To Use A Theme.appcompat Theme --> In Unit Test

Rxjava Android Mvp Unit Test Nullpointerexception

I am new to Unit Testing in mvp, I want to make a verrry basic test to the presenter, which is resp… Read more Rxjava Android Mvp Unit Test Nullpointerexception

Unit Test Avoid Class B Constructor Call In Class A Test Method

I have ClassA and ClassB, i have some instrumentation dependencies instantiated in Class B construc… Read more Unit Test Avoid Class B Constructor Call In Class A Test Method

Unit Testing Arraymap Throws Method Put In Android.util.arraymap Not Mocked

I am trying to unit test a method that uses array map and I keep getting the following exception: j… Read more Unit Testing Arraymap Throws Method Put In Android.util.arraymap Not Mocked

Right Place To Offer Or Send Channel In Mvi Pattern

I load data in recycleView in advance. In order to do that I have following code in onCreate() of A… Read more Right Place To Offer Or Send Channel In Mvi Pattern

Robotium How To Test With Background Services Like Conversion?

I am using Robotium Recorder to test my app. My problem is in my app i am doing audio conversions … Read more Robotium How To Test With Background Services Like Conversion?

How To Mock Bundle Method In Android Unit-test?

I have one controller class that handle Fragment creation. Let's say like below: public class F… Read more How To Mock Bundle Method In Android Unit-test?

Activityunittestcase And Startactivity With Actionbaractivity

I try to test a Activity which uses ActionBarActivity (from the appcompat library). I need a custom… Read more Activityunittestcase And Startactivity With Actionbaractivity

Cannot Resolve Symbol Instanttaskexecutorrule

I open example code BasicRxJavaSample (from this article Room+RxJava) The main thing is there: @Ru… Read more Cannot Resolve Symbol Instanttaskexecutorrule

Jvm Options In Android When Run Gradlew Test

I have a project that using Robolectric for unit test purpose. This project uses Robolectric 3.0 an… Read more Jvm Options In Android When Run Gradlew Test