@Test
  void testCompactDb() throws Exception {

    var compactResult = runForCompactTest(true);
    var nonCompactResult = runForCompactTest(false);

    assertEquals(nonCompactResult.tiles, compactResult.tiles);
    assertTrue(
      compactResult.tileDataCount() < compactResult.tiles.size(),
      "tileDataCount=%s should be less than tileCount=%s".formatted(
        compactResult.tileDataCount(), compactResult.tiles.size()
      )
    );
  }
In-memory tests with fake data and profiles to ensure all features work end-to-end.
planetiler-core/src/test/java/com/onthegomap/planetiler/PlanetilerTests.java