Matthias Geisler
02/23/2022, 7:56 PMiamsteveholmes
02/23/2022, 8:02 PMMatthias Geisler
02/23/2022, 8:02 PMiamsteveholmes
02/23/2022, 10:32 PMNicklas Jensen
02/24/2022, 3:10 PMkpgalligan
02/24/2022, 5:12 PMMatthias Geisler
02/24/2022, 5:49 PMkpgalligan
02/24/2022, 6:55 PMkpgalligan
02/24/2022, 7:02 PMkpgalligan
02/24/2022, 7:04 PMMatthias Geisler
02/24/2022, 7:04 PMkpgalligan
02/24/2022, 7:05 PMMatthias Geisler
02/24/2022, 7:05 PMkpgalligan
02/24/2022, 7:08 PMkpgalligan
02/24/2022, 7:08 PMMatthias Geisler
02/24/2022, 7:09 PMMatthias Geisler
02/24/2022, 7:11 PMkpgalligan
02/24/2022, 7:11 PMMatthias Geisler
02/24/2022, 7:12 PMMatthias Geisler
02/24/2022, 7:12 PMkpgalligan
02/24/2022, 7:16 PMMatthias Geisler
02/24/2022, 7:20 PMMatthias Geisler
02/27/2022, 3:08 PMMatthias Geisler
03/14/2022, 10:30 AMnativeTest
like regular platform sources and I finally managed to write a more or less proper documentation. So any feedback would be much appreciated!
Aside from this advertisment block I also took a deeper look into compiler plugins. I think currently to work with them instead of KSP is very bad gamble since many things are moving around in my impression in the compiler. This means the cost of maintenance is simply too hight. But there is at least a possibility to make classes usable. The idea is to make classes which are used for mocks simply open so the actual mock can use old fashioned inheritance. I already managed to do that locally with the big hammer, so that needs further refinement. Before you ask how - Kotlin has already a compiler plugin with similar capabilities - all-open, so you get an impression on that.
However in my ideal world, like with other modern frameworks, Kotlin itself should come with mocking capabilities, iff they are compiler based, to keep them reliable. For now it would be a big step if Kotlin would ship with a compiler plugin similar to the already mentioned one above, which opens simply either all classes during tests or provides an API which is usable while running tests, so anybody can take advantage of that and the approach would be reliable.
Long message, I am sorry for that...