Slackbot
02/17/2021, 6:44 PMMustafa Ozhan
02/17/2021, 6:52 PMclient
module’s commonTestDaniele B
02/17/2021, 10:28 PMApiRepositoryTest
, but I am getting an error:
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':common:testDebugUnitTest'.
> Could not resolve all task dependencies for configuration ':common:debugUnitTestRuntimeClasspath'.
> Could not resolve project :logmob.
Required by:
project :common
> No matching configuration of project :logmob was found. The consumer was configured to find a runtime of a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but:
- None of the consumable configurations have attributes.
runTest
on my project, but I still get this error:
Exception in thread "Test worker @coroutine#1" java.lang.IllegalStateException: Module with the Main dispatcher is missing. Add dependency providing the Main dispatcher, e.g. 'kotlinx-coroutines-android' and ensure it has the same version as 'kotlinx-coroutines-core'
Mustafa Ozhan
02/17/2021, 10:53 PMgit clone <https://github.com/CurrencyConverterCalculator/CCC.git>
cd CCC
git submodule update --init --recursive
• secondly after that change in ApiFactory
these 2 lines
takeFrom(BASE_URL_BACKEND)
...
takeFrom(BASE_URL_API)
please replace them with ""
otherwise you will get error that they are not committed to gitrunTest
is failing exactly ?Daniele B
02/17/2021, 11:21 PMtestDebugUnitTest
, simply selecting it with the right click on the function.
But unfortunately mine don’t work. I still don’t understand why. The runTest
definitions are exactly the same as yours.runTest
!!!
Thanks for your support!Mustafa Ozhan
02/18/2021, 8:18 AM