CI testing with local files

Michael Reeves reeves.87 at gmail.com
Thu Jan 28 19:54:43 GMT 2021


Thanks.

On Thu, Jan 28, 2021, 2:17 PM Andreas Cord-Landwehr <cordlandwehr at kde.org>
wrote:

> On Donnerstag, 28. Januar 2021 10:20:54 CET Konstantin Kharlamov wrote:
> > On Wed, 2021-01-27 at 17:36 -0500, Michael Reeves wrote:
> > > Is there way to reading and writing small files in the CI? I'm in the
> > > process of writing auto tests for kdiff3.
> >
> > Your tests could create a directory inside the current one, and then
> inside
> > the new directory do stuff like creating files, etc. So, unless I
> > misunderstand your question, there's that.
>
> Hi, best practise is to put those files into a QTemporaryDir or create
> them as
> QTemporaryFile to avoid contamination from a previous test run. Also you
> should not change input data during a test that will be needed unchanged
> for
> another test run but prefer copying it to a temporary location.
>
> Best regards,
> Andreas
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20210128/3a5ac1b3/attachment.htm>


More information about the kde-core-devel mailing list