<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<br>
<blockquote type="cite"
cite="mid:3049631d-5857-4338-bd4f-e37abe88da50@spatialys.com">
<p>To test your own development, you may have a more pleasant
experience by directly running just the tests for your driver
with something like "pytest autotest/ogr/ogr_miramon.py" (be
careful on Windows, the content of $build_dir/autotest is copied
from $source_dir/autotest each time "cmake" is run, so if you
edit your test .py file directly in the build directory, be
super careful of not accidentally losing your work, and make
sure to copy its content to the source directory first. That's
admittedly an annoying point of the current test setup on
Windows, compared to Unix where we use symbolic links)<br>
</p>
</blockquote>
<p>Actually Dan figured out it was possible to run directly the
tests against your test file from the source directory, and not
the one that is copied. Cf <a class="moz-txt-link-freetext" href="https://github.com/OSGeo/gdal/pull/9224">https://github.com/OSGeo/gdal/pull/9224</a></p>
<p>So you can actually do from the build directory:<br>
</p>
<p>pytest -c autotest/pytest.ini ../autotest/ogr/ogr_gpx.py</p>
<span style="white-space: pre-wrap">
</span>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</body>
</html>