How can I test a worker when I have the Hilt injection in the worker's constructor. I use 'TestListenableWorkerBuilder' but it throws 'IllegalStateException: Could not create an instance of ListenableWorker' and I couldn't find any info in the documentation. Thanks
@@googleJay I have this already. I have custom parameters in the worker's constructor beside 'context' and 'worker parameters'. When I want to create instance of this Worker for test cases, it throws exceptions in every way I looked up. In addition, I couldn't find any info in the official documentation for this case.
I am familiar with Java how can I code both Java and kotlin (step by step from beginning) and work manager I know basic but you explain in kotlin I not well in kotlin
How can I test a worker when I have the Hilt injection in the worker's constructor. I use 'TestListenableWorkerBuilder' but it throws 'IllegalStateException: Could not create an instance of ListenableWorker' and I couldn't find any info in the documentation. Thanks
@@googleJay I have this already. I have custom parameters in the worker's constructor beside 'context' and 'worker parameters'. When I want to create instance of this Worker for test cases, it throws exceptions in every way I looked up. In addition, I couldn't find any info in the official documentation for this case.
I have the same problem and no clue how to solve this. Bix blocker
And what if I want to test a coroutineworker without initializing it? Just like "OneTimeWorkRequestBuilder"?
Wow, this was very very useful! Didn't know at all about the debugging and testing bits. Really nice video!
Just what I needed!! Thank you very much
I am familiar with Java how can I code both Java and kotlin (step by step from beginning) and work manager
I know basic but you explain in kotlin I not well in kotlin
Start from Google codelabs. You will start loving Kotlin and hating java
👍👍
hello i have problem where í can contact you?
💙👏👌💟🧡👍👍
Hi