The tests use an in-memory SQLite database by default. If you need to use a different database for testing, update the phpunit.xml file accordingly. Some tests may require specific environment ...
The most convenient way to use D2 is to just run it as a CLI executable to produce SVGs from .d2 files. You can run the install script with --dry-run to see the ...