# Property-Based Testing for Visualization Development

Published in VisGap Workshop 2021, Eurographics, 2021

Recommended citation: Michael Stegmaier et al.: "Property-Based Testing for Visualization Development" in The Eurographics Association VisGap Workshop (2021). https://doi.org/10.2312/visgap.20211087

### Abstract

As the testing capabilities of current visualization software fail to cover a large space of rendering parameters, we propose to use property-based testing to automatically generate a large set of tests with different parameter sets. By comparing the resulting renderings for pairs of different parameters, we can verify certain effects to be expected in the rendering upon change of a specific parameter. This allows for testing visualization algorithms with a large coverage of rendering parameters. Our proposed approach can also be used in a test-driven manner, meaning the tests can be defined alongside the actual algorithm. Lastly, we show that by integrating the proposed concepts into the existing regression testing pipeline of Inviwo, we can execute the property-based testing process in a continuous integration setup. To demonstrate our approach, we describe use cases where property-based testing can help to find errors during visualization development.

### Citation

@inproceedings {pbtvis2021,
booktitle = {VisGap - The Gap between Visualization Research and Visualization Software},
editor = {Gillmann, Christina and Krone, Michael and Reina, Guido and Wischgoll, Thomas},
title = {Property-Based Testing for Visualization Development},
author = {Stegmaier, Michael and Engel, Dominik and Olbrich, Jannik and Ropinski, Timo and Tichy, Matthias},
year = {2021},
publisher = {The Eurographics Association},
ISBN = {978-3-03868-149-6},
DOI = {10.2312/visgap.20211087}
}