mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
Masks set which pixels in the control image should be tested and an optional tolerance for each pixel. This is done via the colors in the mask image - white pixels are ignored, black must be an exact match, and gray levels represent the maximum color component deviation for that pixel. This should replace the fragile anomaly images, in that a single control image with a suitable mask will not be susceptible to antialiasing differences, etc. A new script (scripts/generate_test_mask_image.py) is included which either creates a new mask or modifies an existing mask to handle an acceptable rendered image. Ultimately, masking along with multi render checks for specific platform differences should be flexible enough to meet our needs.
Running tests ============= You can run all tests using "make check". Individual tests can be run using ctest. For example if the output of "make check" ends like this: The following tests FAILED: 77 - PyQgsLocalServer (Failed) You could re-run the failing test with: ctest -V -R PyQgsLocalServer