OSM2PGSQL-TEST-STYLE(1)

πŸ“¦ version 2.3.1, in arch rolling, nixpkgs unstable, ubuntu stonking

πŸ’… NAME

okay so bestie, lemme introduce you to osm2pgsql-test-style β€” it's the osm2pgsql style testing tool. that's the whole vibe. you run it, it tests your styles. iconic behavior fr fr ✨


πŸŽ€ SYNOPSIS

osm2pgsql-test-style [-h] [--osm2pgsql-binary OSM2PGSQL_BINARY] [--test-data-dir TEST_DATA_DIR] [--style-data-dir STYLE_DATA_DIR] [--test-db TEST_DB] [--template-test-db TEMPLATE_TEST_DB] [--keep-test-db] [--test-tablespace {yes,no,auto}] [--test-proj {yes,no,auto}] features [features ...]

like yes, that's a lot of brackets, but we're gonna walk through every single one, don't even worry 🫢


🌸 DESCRIPTION

so. this is the test runner for BDD-style integration tests πŸ’– that's literally its whole job description. it runs the tests, it's giving main character energy, and it does it for osm2pgsql style testing.

for the deets on osm2pgsql style testing in general, go peek at the osm2pgsql manual β€” that's where the lore lives πŸ“–

and here's the positional argument situation, no cap:

  • features β€” feature files or paths. that's it, that's the tea. you hand it feature files, or paths, and it goes to work. πŸ¦‹

✨ OPTIONS ✨

okay bestie, this is the part where we list EVERY flag. no skipping, no summarizing, we are thorough in this house πŸ‘‘

  • --osm2pgsql-binary OSM2PGSQL_BINARY β€” which osm2pgsql binary should we use for testing? you tell it here. (default: osm2pgsql)
  • --test-data-dir TEST_DATA_DIR β€” (optional) directory to search for test data. only if you want to, no pressure. 🌈
  • --style-data-dir STYLE_DATA_DIR β€” (optional) directory to search for style files. also optional, also chill. πŸŽ€
  • --test-db TEST_DB β€” the name of the database we're using for testing. (default: osm2pgsql-test)
  • --template-test-db TEMPLATE_TEST_DB β€” the name of the database used for creating the template db. yes those are two different databases, keep up bestie. (default: osm2pgsql-test-template)
  • --keep-test-db β€” keeps the test database around after the tests are done. so if you're the type who hates cleanup, this one's for you πŸ’€
  • --test-tablespace {yes,no,auto} β€” include tests that require a tablespace. pick your fighter: yes, no, or auto. 🧚
  • --test-proj {yes,no,auto} β€” include tests that require the proj library. same three choices: yes, no, or auto. πŸ”₯
side note: the synopsis also shows -h, bestie. that's the classic help flag, iykyk πŸ’…

πŸ‘€ SEE ALSO


and that's the whole page, bestie!! this was osm2pgsql-test-style, version 2.3.1 β€” go forth and test those styles, you absolute icon πŸ‘‘πŸ’– periodt.

πŸ“¦ where this page comes from