Hooked up the test data! -- DONE!!!

Gilles Caulier caulier.gilles at gmail.com
Fri Oct 14 18:10:44 BST 2022


Exactly.

All the rules are already implemented in these classes :

Generic temp dir management:

https://invent.kde.org/graphics/digikam/-/blob/master/core/tests/metadataengine/abstractunittest.h#L83
https://invent.kde.org/graphics/digikam/-/blob/master/core/tests/metadataengine/abstractunittest.h#L90

Exemple of file move to temp dir before to run unit test :

https://invent.kde.org/graphics/digikam/-/blob/master/core/tests/metadataengine/erasemetadatatag_utest.cpp#L45

Gilles

Le ven. 14 oct. 2022 à 16:54, Steve Robbins <steve at sumost.ca> a écrit :
>
> Yeah, temp copies are a common thing. Would be nice to centralize that code .
>
> On October 14, 2022 8:27:18 a.m. CDT, Gilles Caulier <caulier.gilles at gmail.com> wrote:
>>
>> I migrated more data files from the album model and database. I plan
>> to do more during this weekend.
>>
>> There is the advanced-rename part which is more complicated, as unit
>> tests operate directly on data files. We need to perform a copy in a
>> temporary directory first, as I do with the metadata engine.
>>
>> Gilles
>>
>> Le ven. 14 oct. 2022 à 15:22, Steven Robbins <steve at sumost.ca> a écrit :
>>>
>>>
>>>  On Thursday, October 13, 2022 11:57:24 P.M. CDT Gilles Caulier wrote:
>>>>
>>>>  Hi Steve,
>>>>
>>>>  I reviewed your codes, changed some details, and ported the
>>>>  metadataengine unit tests to the new repository.
>>>
>>>
>>>  Thanks.  I see from your changes that I had missed out on coding/naming
>>>  conventions in my test code.  I'll try to follow that better in future
>>>  testing.
>>>
>>>  -Steve
>
> --
> Sent from my Android device with K-9 Mail. Please excuse my brevity.


More information about the Digikam-devel mailing list