last day (15 days later) » 

9:11 PM
0
A: Android: local tests with code coverage?

Oleg BogdanovMay be not an answer per se You could try changing testCompile ('com.android.support.test:runner:0.5', { exclude group: 'com.android.support', module: 'support-annotations' }) to androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'c...

 
Jon
I've tried replacing it but I still get the failure "Process finished with exit code 1 .. Empty test suite"
 
what's InstrumentationRegistry in your case? is it supposed to run in deviceless setup?
 
Jon
I want to run tests for an Sqlite wrapper and it needs a context, hence the instrumentationRegistry. I've tried commenting out that line but the test fails the same way
 
sorry im clueless, whats your build tool version? would you mind trying gradle:2.2.3 ?
 
Jon
buildToolsVersion "25.0.2" - sure, I'll try. Thanks for your help :)
it still insists that there's an empty test suite and won't run the test
 
9:11 PM
oh, would you mind sharing more of your gradle file, the part you pasted is sure incomplete
 
Jon
I've edited to show the full gradle file
 
let me try that
whats your AS version?
im realyl clueless, sorry, I have everything from your question now and it still works as expected
 
Jon
2.3 beta 1
 
except im on 2.23
*2.2.3 rather
 
Jon
I'll try to create a brand new project and run that way
ok. I'll try to dl that version also
first of all.. a brand new project fails the same. Now I'll try to dl the older version
 
Jon
10:05 PM
Update: after installing version 2.2.3 it still doesn't work - same error message :/
 
interesting
 
Jon
no wait.. it started working now :/ something must have finished indexing or running in the background
can you change your answer to be: downgrade to version 2.2.3 and I'll give you accepted answer on the question?
thank you very very very very much for your help on this! I would never have guessed it was connected to the AS version
 
10:26 PM
no problem
I've seen it all before, you never know what breaks with update
please update your own quesiton with your findings
oh, will change my answer now
done, quitting the chat now, good luck
 

last day (15 days later) »