Mark M. |
how can I help you today?
|
Mark M. |
though if your question is "what will the 'tasty treat' be for Android Q", I have no idea
|
Andy |
hey mark, is there a way to debug a unit test in android studio now? I switched to using kotlin on android studio 3.3 and it doesnt hit any breakpoints though it does throw an error indicating that the function was run
|
Mark M. |
unit tests have been acting strange for a year or so
|
Andy |
yeah desserts that start with Q please
|
Mark M. |
technically, they don't have to be desserts, but we're short on any sort of foods that being with Q...
|
Mark M. |
in terms of the unit tests, I couldn't get them to run reliably in Android Studio for much of the latter half of last year, let alone get them working in a debugger
|
Mark M. |
I settled for running the Gradle tasks from the command line
|
Andy |
all the android codenames have been sweets though
|
Mark M. |
I haven't worked with unit tests much in AS 3.3 yet, so I can't comment on any new and exciting problems
|
Mark M. |
"tasty treats" is the official phrase for the scope of the Android release code names
|
Mark M. |
but Q is gonna be a problem
|
Andy |
i ran through the gamut and noticed they were all sweets so
|
Mark M. |
tasty, but "treat" would be a stretch, and awfully similar to pie
|
Andy |
back to android, um have you run into "java.lang.AssertionError: Not completed (latch = 1, values = 0, errors = 0, completions = 0, timeout!
|
Mark M. |
sounds like a CountDownLatch didn't get released
|
Mark M. |
is this coming directly from your test code? your app code? framework code? something else?
|
Andy |
google says that happens when running a test on different threads and the observer didnt have time to receive the emission? This is thrown from my unit test
|
Mark M. |
I don't recall getting that with RxJava 2 unit tests, though there are a variety of ways of implementing such tests, so perhaps mine used something else
|