[QGIS-Developer] Running unit tests without "make install"

Nyall Dawson nyall.dawson at gmail.com
Sun Dec 31 14:37:53 PST 2023


On Mon, 1 Jan 2024, 6:36 am Thomas Larsen Wessel via QGIS-Developer, <
qgis-developer at lists.osgeo.org> wrote:

> The docs (
> https://docs.qgis.org/3.28/en/docs/developers_guide/unittesting.html#run-your-tests)
> specify: *make && make install && make test*.
>
> I would rather not run make install, since I have another instance of QGIS
> installed via APT, and I worry running make install will somehow make a
> mess and leave me without a working instance.
>
> But is it really necessary to run make install before make run? In fact it
> seems more natural to me to test before installing!
>

Try running "ctest" from your build directory. There's no need to install
if doing it this way. (It's how I do all of my development)

Nyall

>
> Sincerely
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20240101/6081e4ed/attachment.htm>


More information about the QGIS-Developer mailing list