Graph database management systems (GDBMSs) are used in various domains, including safety-critical applications. A challenging aspect of testing such systems is that it needs a large and diverse amount of test data consisting of queries and graph contents. However, existing GDBMS testing tools provide very limited support for synthesizing a meaningful and diverse set of test graphs. This paper presents GDSynth, our novel testing framework that aims to reveal bugs in graph database management systems by innovatively combining (1) metamodel mutations with (2) automated synthesis of domain-specific graph models as test data executed on existing test queries. The usefulness of our framework is showcased by performing automated metamorphic testing of the Neo4J graph database and revealing a previously reported real bug. Our demo video is available at https://youtu.be/dIPlf0G3-d0 and our open-source code is available at https://github.com/FozAhm/GDSynth.
Funding: Office of Naval Research [N629092412063]; Wallenberg AI, Autonomous Systems and Software Program (WASP) - KAW Foundation; FRQNT [2024-NOVA-346499, 363482]; NSERC [RGCPIN-2022-03744]; Vetenskapsradet