Skip to content

Commit

Permalink
unittesting: add test sandboxing process
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitdm-oslandia authored and DelazJ committed Aug 28, 2024
1 parent c1e4742 commit 428ce1b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/developers_guide/unittesting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -703,6 +703,23 @@ This makes it possible to run a specific subset of tests:
Totals: 3 passed, 0 failed, 0 skipped, 0 blacklisted, 272ms
********* Finished testing of TestQgsDxfExport *********
Sandboxing test run
-------------------
By default all test temporary files are written to the system temp directory (for example ``/tmp/`` on Linux systems or ``C:\temp`` on Windows).
A lot of files can be created in this directory during the test run.
If you do not want to mix up with the common system temp directory (for example on a multi user server or in case of permission issue),
you can create your own temp directory and specify it to ``ctest`` by setting the ``TMPDIR`` environment variable with your new directory.
On Linux you could do it with:
.. code-block:: bash
$ mkdir ~/my_qgis_temp
$ TMPDIR=~/my_qgis_temp ctest
Debugging unit tests
--------------------
Expand Down

0 comments on commit 428ce1b

Please sign in to comment.