https://kotlinlang.org logo
#atrium
Title
# atrium
e

electrolobzik

06/28/2020, 11:27 AM
I have some errors on regular run, fixing. Will come back.
r

robstoll

06/28/2020, 2:45 PM
In case it worked in the end, could you please try to remove the two additional dependencies again. In theory it should work without them, otherwise it could be a bug. Wouldbe nice to know
e

electrolobzik

06/29/2020, 6:33 PM
@robstoll I have fixed all errors, now the project builds normally with AS. But I still have the same issue when running Spek test
Also I have checked dependencies tree:
devDebugUnitTest devDebugUnitTestCompileClasspath - Dependencies for compilation +--- com.github.stephanenicolas.toothpickktp3.1.0@jar +--- com.github.stephanenicolas.toothpicktoothpick runtime3.1.0@jar +--- com.github.stephanenicolas.toothpicktoothpick3.1.0@jar +--- javax.injectjavax.inject1@jar +--- org.jetbrains.kotlinkotlin android extensions runtime1.3.72@jar +--- org.jetbrains.kotlinkotlin stdlib jdk81.3.72@jar +--- org.jetbrains.kotlinkotlin stdlib jdk71.3.72@jar +--- androidx.corecore ktx1.3.0@aar +--- ch.tutteli.atriumatrium core robstoll lib0.12.0@jar +--- ch.tutteli.atriumatrium infix en GB0.12.0@jar +--- ch.tutteli.atriumatrium verbs0.12.0@jar +--- ch.tutteli.atriumatrium translations en GB0.12.0@jar +--- ch.tutteli.atriumatrium domain robstoll lib0.12.0@jar +--- ch.tutteli.atriumatrium api infix en GB0.12.0@jar +--- ch.tutteli.atriumatrium domain builders0.12.0@jar +--- ch.tutteli.atriumatrium domain api0.12.0@jar +--- ch.tutteli.atriumatrium core api0.12.0@jar
devDebugUnitTestRuntimeClasspath - Dependencies for runtime/packaging +--- com.github.stephanenicolas.toothpickktp3.1.0@jar +--- com.github.stephanenicolas.toothpicktoothpick runtime3.1.0@jar +--- org.jetbrains.kotlinkotlin android extensions runtime1.3.72@jar +--- org.spekframework.spek2spek runner junit52.0.11@jar +--- org.spekframework.spek2spek runtime jvm2.0.11@jar +--- org.spekframework.spek2spek dsl jvm2.0.11@jar +--- org.jetbrains.kotlinkotlin stdlib jdk81.3.72@jar +--- org.jetbrains.kotlinkotlin stdlib jdk71.3.72@jar +--- androidx.corecore ktx1.3.0@aar +--- androidx.appcompatappcompat1.1.0@aar +--- junitjunit4.12@jar +--- ch.tutteli.atriumatrium infix en GB0.12.0@jar +--- ch.tutteli.atriumatrium core robstoll0.12.0@jar +--- ch.tutteli.atriumatrium core robstoll lib0.12.0@jar +--- ch.tutteli.atriumatrium domain robstoll0.12.0@jar +--- ch.tutteli.atriumatrium domain robstoll lib0.12.0@jar +--- io.mockkmockk1.10.0@jar +--- ch.tutteli.atriumatrium verbs0.12.0@jar +--- ch.tutteli.atriumatrium translations en GB0.12.0@jar +--- ch.tutteli.atriumatrium api fluent en GB0.12.0@jar +--- ch.tutteli.atriumatrium api cc en GB0.12.0@jar +--- ch.tutteli.atriumatrium api infix en GB0.12.0@jar +--- ch.tutteli.atriumatrium domain builders0.12.0@jar +--- ch.tutteli.atriumatrium domain api0.12.0@jar +--- ch.tutteli.atriumatrium core api0.12.0@jar +--- ch.tutteli.niokniok1.3.4@jar +--- io.mockkmockk dsl jvm1.10.0@jar +--- org.jetbrains.kotlinkotlin reflect1.3.72@jar +--- com.github.stephanenicolas.toothpicktoothpick3.1.0@jar +--- javax.injectjavax.inject1@jar +--- org.jetbrains.kotlinxkotlinx coroutines core1.3.3@jar +--- org.jetbrains.kotlinkotlin stdlib1.3.72@jar +--- androidx.fragmentfragment1.1.0@aar +--- androidx.appcompatappcompat resources1.1.0@aar +--- androidx.drawerlayoutdrawerlayout1.0.0@aar +--- androidx.viewpagerviewpager1.0.0@aar +--- androidx.loaderloader1.0.0@aar +--- androidx.activityactivity1.0.0@aar +--- androidx.vectordrawablevectordrawable animated1.1.0@aar +--- androidx.vectordrawablevectordrawable1.1.0@aar +--- androidx.customviewcustomview1.0.0@aar +--- androidx.corecore1.3.0@aar +--- androidx.cursoradaptercursoradapter1.0.0@aar +--- androidx.versionedparcelableversionedparcelable1.1.0@aar +--- androidx.collectioncollection1.1.0@jar +--- androidx.lifecyclelifecycle runtime2.1.0@aar +--- androidx.lifecyclelifecycle viewmodel2.1.0@aar +--- androidx.savedstatesavedstate1.0.0@aar +--- androidx.interpolatorinterpolator1.0.0@aar +--- androidx.lifecyclelifecycle livedata2.0.0@aar +--- androidx.lifecyclelifecycle livedata core2.0.0@aar +--- androidx.arch.corecore runtime2.0.0@aar +--- androidx.arch.corecore common2.1.0@jar +--- androidx.lifecyclelifecycle common2.1.0@jar +--- androidx.annotationannotation1.1.0@jar +--- org.hamcresthamcrest core1.3@jar +--- ch.tutteli.atriumatrium infix en GB common0.12.0@jar +--- ch.tutteli.atriumatrium core robstoll common0.12.0@jar +--- ch.tutteli.atriumatrium core robstoll lib common0.12.0@jar +--- ch.tutteli.atriumatrium domain robstoll common0.12.0@jar +--- ch.tutteli.atriumatrium domain robstoll lib common0.12.0@jar +--- io.mockkmockk agent jvm1.10.0@jar +--- io.mockkmockk common1.10.0@jar +--- ch.tutteli.atriumatrium verbs common0.12.0@jar +--- ch.tutteli.atriumatrium translations en GB common0.12.0@jar +--- ch.tutteli.atriumatrium api fluent en GB common0.12.0@jar +--- ch.tutteli.atriumatrium api cc en GB common0.12.0@jar +--- ch.tutteli.atriumatrium api infix en GB common0.12.0@jar +--- ch.tutteli.atriumatrium domain builders common0.12.0@jar +--- ch.tutteli.atriumatrium domain api common0.12.0@jar +--- ch.tutteli.atriumatrium core api common0.12.0@jar +--- org.jetbrains.kotlinxkotlinx coroutines core common1.3.3@jar +--- org.jetbrains.kotlinkotlin stdlib common1.3.72@jar +--- org.junit.platformjunit platform commons1.6.0@jar +--- org.junit.platformjunit platform engine1.6.0@jar +--- org.jetbrainsannotations13.0@jar +--- ch.tutteli.kboxkbox0.14.3@jar +--- ch.tutteli.kboxkbox common0.14.3@jar +--- io.mockkmockk agent common1.10.0@jar +--- io.mockkmockk agent api1.10.0@jar +--- org.objenesisobjenesis3.1@jar +--- net.bytebuddybyte buddy1.10.9@jar +--- net.bytebuddybyte buddy agent1.10.9@jar +--- io.mockkmockk dsl1.10.0@jar +--- io.github.classgraphclassgraph4.8.37@jar +--- org.apiguardianapiguardian api1.1.0@jar \--- org.opentest4jopentest4j1.2.0@jar
It’s strange that there are so many dependencies of atrium
gradle config has this 3 lines:
Copy code
testImplementation "ch.tutteli.atrium:atrium-core-robstoll-lib:$versions.atriumVersion"
testImplementation "ch.tutteli.atrium:atrium-domain-robstoll-lib:$versions.atriumVersion"
testImplementation "ch.tutteli.atrium:atrium-infix-en_GB:$versions.atriumVersion"
Still having the issue
r

robstoll

06/29/2020, 8:53 PM
Copy code
"ch.tutteli.atrium:atrium-infix-en_GB:$versions.atriumVersion"
Is a bundle module, it includes all the other modules (there are that many modules due to the modular and loosely coupled architecture of Atrium). You should be able to remove the first two dependencies and see the same results if you look at your dependencies. Could you wrap the above output into backticks. This way I might spot a problem. On the first glance it looks good
e

electrolobzik

06/30/2020, 8:53 AM
“Could you wrap the above output into backticks. This way I might spot a problem.” What do you mean?
r

robstoll

06/30/2020, 8:54 AM
the output of:
Copy code
devDebugUnitTestRuntimeClasspath - 
...
is not indented well I guess, if you wrap it into ``` then they should stay
btw. is it a public project? I could have a look
e

electrolobzik

06/30/2020, 9:36 AM
the output is produced in this way, it is not indented on the screen as well
unfortunately, the project is not public
but I could make any experiments
r

robstoll

06/30/2020, 10:48 AM
A public repo where the problem can be reproduced would enable that I can digg a bit deeper, so this would be great. Currently, I assume it is a problem in Spek's android Studio plugin. Never had problems in Intellij + spek + Atrium so far
e

electrolobzik

06/30/2020, 10:49 AM
figured out how to get normal tree-like dependencies
r

robstoll

06/30/2020, 10:56 AM
Looks good. You can definitely remove the two dependencies and only keep atrium-infix-en_GB. Does spek run normal with gradle?
e

electrolobzik

06/30/2020, 11:25 AM
yes, test passed with gradle
=(
r

robstoll

06/30/2020, 11:27 AM
I'll try to help you with spek. As I am not a Android Studio user it would be nice if you could create a public repo including AS config files etc. so that I can just open the project and check why it fails. Maybe someone in #spek is aware of this problem already
e

electrolobzik

06/30/2020, 12:17 PM
I’ll create the project, thank you
@robstoll I just posted my repo and your feedback to the #spek and @raniejade probably will take a look
r

robstoll

07/02/2020, 1:13 PM
cool
16 Views