Damian Baczyński
07/13/2023, 12:48 PM1.8.20
, 1.8.21
, 1.8.22
and 1.9.0
. It supports JVM, JS, and all 3 tiers of Kotlin Native targets.
If you have any questions, need assistance, or simply want to share your experiences, feel free to reach out. KPiotr Krzemiński
07/13/2023, 12:54 PMDamian Baczyński
07/13/2023, 12:58 PMKilian
07/13/2023, 1:16 PMDamian Baczyński
07/13/2023, 1:19 PMDamian Baczyński
07/13/2023, 1:21 PMkqr
07/13/2023, 1:31 PMDamian Baczyński
07/13/2023, 1:36 PMDamian Baczyński
07/13/2023, 1:49 PMJeff Lockhart
07/13/2023, 2:31 PMDamian Baczyński
07/13/2023, 2:39 PMJeff Lockhart
07/13/2023, 2:42 PMDamian Baczyński
07/13/2023, 2:43 PMDamian Baczyński
07/13/2023, 2:45 PMrocketraman
07/13/2023, 2:48 PMJeff Lockhart
07/13/2023, 2:51 PM@OpenForMock
that indicates the class should be final during regular compilation, but open for test compilation specifically. This could work in conjunction with your mock compiler plugin applied to tests.Damian Baczyński
07/13/2023, 2:55 PMDamian Baczyński
07/13/2023, 2:57 PMrocketraman
07/13/2023, 2:57 PMStefan Oltmann
07/13/2023, 4:30 PMDamian Baczyński
07/13/2023, 6:19 PMStefan Oltmann
07/13/2023, 6:48 PMStefan Oltmann
07/13/2023, 6:49 PMkqr
07/13/2023, 6:49 PMStefan Oltmann
07/13/2023, 6:51 PMrocketraman
07/13/2023, 6:52 PMI tried your idea and it seems to work. It is possible to mock final class when all-open plugin annotation is applied to this class. Thank you for the idea! I'm not sure if i have to add this functionality to my plugin. Quick note about this interaction with all-open plugin in the doc should be enough. (edited)Doing all-open in this way would make it open for released code as well wouldn't it? Ideally the open would apply only during tests.
Stefan Oltmann
07/13/2023, 6:53 PMDamian Baczyński
07/13/2023, 6:54 PMStefan Oltmann
07/13/2023, 6:56 PMStefan Oltmann
07/13/2023, 6:59 PMDamian Baczyński
07/13/2023, 7:11 PMall-open
behavior for main source set only before test set is easy to do. For me all-open
workaround should be enough. Maybe in the future I will explore this, but of course as an optional feature 😄.Jeff Lockhart
07/13/2023, 8:32 PMZachary Siegel
07/14/2023, 12:49 AMrocketraman
07/14/2023, 12:52 AM