Provision of enabling tests for frameworks

Sharaf Zaman shzam at sdf.org
Thu Jan 12 18:14:08 GMT 2023


Volker Krause <vkrause at kde.org> writes:

> On Dienstag, 10. Januar 2023 19:10:24 CET Sharaf Zaman wrote:
>> Today I encountered a bug with KConfig [1], which surfaced because of the
>> quirks of QSaveFile and Android. Even though these bugs are trivial [2],
>> but having them in code is bad (especially since, saving files, configs can
>> be serious if not done properly).
>>
>> So, I’d like to ask, is there somebody who is working on getting unit tests
>> etc to work on Android for kde-frameworks? If not, do you think it would be
>> a good idea to think about it right now? Given more and more KDE apps are
>> getting on mobile platform.
>
> I absolutely would like to have Android unit tests! Having fixed some of those
> file I/O issue in Qt and KDE code myself I feel your pain there.
>
> As Aleix said, the main challenge is figuring out how to do that. It might help
> if we do CI builds for x86 rather than/in addition to ARM? Craft can do that,
> even if the current CI image might not contain that configuration. That might
> be easier to execute in the Android emulator then, which presumably is how we
> would run tests on the CI?
>
> Regards,
> Volker
>

> It might help if we do CI builds for x86 rather than/in addition to ARM?

Yes, I think it will be wise to have x86 image since the metrics will be more
realistic than emulation of ARM on x86.

> Craft can do that, even if the current CI image might not contain that>
> configuration.

You mean Craft can build x86 images or it can build _tests_? (which will make me
jump to try it :) )


More information about the KDE-Android mailing list