I'm using androidx.test
libraries(which I migrated to recently) in my project and using custom AndroidJUnitRunner
.
Before migration it was all working fine but now I'm getting this error -
Started running tests
Test running failed: Instrumentation run failed due to 'Process crashed.'
Empty test suite.
The custom runner class which I use extends from androidx.test.runner.AndroidJUnitRunner
In my app build.gradle
file I have the following setup -
testInstrumentationRunner "com.example.CustomTestRunner"
with dependencies -
androidTestImplementation "androidx.test.ext:junit:1.1.0"
androidTestImplementation 'androidx.test:runner:1.1.1'
androidTestImplementation 'androidx.test:core:1.1.0'
androidTestImplementation "androidx.test:rules:1.1.1"
All my test classes have @RunWith(androidx.test.ext.junit.runners.AndroidJUnit4.class)
I'm stuck at this. Any help would be appreciated. Thanks.