Kotlin Stdlib Common, read files on Test
Kotlin Stdlib Common, read files on Test
I have a Kotlin multi-platform project (iOS and Android) that contains all the common classes and logic that is going to be used for the different platforms.
So far so good, but my only issue is that all my tests are located inside the Android project since I need to read JSON files in order to test my common business logic (and I need access to the JVM in order to read from an asset folder).
Does the Kotlin Common Standard library has way to read files from a folder? If not is there a way to configure the common project to use the Kotlin Standard library only for testing so I have access to the resource folder?
I have already tried to add the kotlin-stdlib
library only as testImplementation
but it appears that it wont work like that...
kotlin-stdlib
testImplementation
0
Thanks for contributing an answer to Stack Overflow!
But avoid …
To learn more, see our tips on writing great answers.
Required, but never shown
Required, but never shown
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.