private static TileCompression extractTileCompression(String args) {
    if (args.contains("tile-compression=none")) {
      return TileCompression.NONE;
    } else if (args.contains("tile-compression=gzip")) {
      return TileCompression.GZIP;
    } else if (args.contains("tile-compression=")) {
      throw new IllegalArgumentException("unhandled tile compression");
    } else {
      return TileCompression.GZIP;
    }
  }
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