kotest icon indicating copy to clipboard operation
kotest copied to clipboard

Project-level config is not working for iOS target

Open OSemenovBoyarka opened this issue 1 year ago • 3 comments

Which version of Kotest are you using Kotest version is 5.8.0 Kotlin version is 1.9.20 Project is shared Kotlin Multiplatform Mobile library consumed by Android and iOS applications.

The issue It appears Project-Level Config is not supported on non-JVM targets (I've tested iOS only). Android target picks up config properly while iOS completely ignores it.

Not sure if that is not implemented yet, but looking to this commit it seems so.

Are there any plans to add support of that feature or at least updating documentation to clearly state that?

OSemenovBoyarka avatar Dec 11 '23 13:12 OSemenovBoyarka

It appears to work if I change AbstractProjectConfig subclass from object to class

OSemenovBoyarka avatar Dec 11 '23 14:12 OSemenovBoyarka

So do you think we should just document it as such @OSemenovBoyarka? As I understand, you made it work with a simple change to the definition, right?

LeoColman avatar Jan 01 '24 16:01 LeoColman

@LeoColman yep, that is true, simple change made that work. I think clearly highlighting it in documentation should fix the problem.

Also documentation lack information of which project config features are working with JVM targets only (ones I've faced - AutoScan and isolationMode are applied to JVM only).

OSemenovBoyarka avatar Jan 02 '24 12:01 OSemenovBoyarka

Updated docs to specify class and marked in javadoc which options are jvm only.

sksamuel avatar Mar 10 '24 02:03 sksamuel