---
name: "osm2pgsql-test-style"
section: "1"
platform: "linux"
package: "osm2pgsql"
version: "2.3.1-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/osm2pgsql-test-style"
---

# osm2pgsql-test-style(1)

osm2pgsql style testing

## NAME

osm2pgsql-test-style - osm2pgsql style testing

## 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 ...\]

## DESCRIPTION

Test runner for BDD-style integration tests.

See osm2pgsql manual for more information on osm2pgsql style testing.

- **features**

  Feature files or paths

## OPTIONS

- **--osm2pgsql-binary** *OSM2PGSQL\_BINARY*

  osm2pgsql binary to use for testing (default: osm2pgsql)

- **--test-data-dir** *TEST\_DATA\_DIR*

  (optional) directory to search for test data

- **--style-data-dir** *STYLE\_DATA\_DIR*

  (optional) directory to search for style files

- **--test-db** *TEST\_DB*

  Name of database to use for testing (default: osm2pgsql-test)

- **--template-test-db** *TEMPLATE\_TEST\_DB*

  Name of database to use for creating the template db (default: osm2pgsql-test-template)

- **--keep-test-db**

  Keep the test database around after tests are done

- **--test-tablespace** *{yes,no,auto}*

  Include tests requiring a tablespace

- **--test-proj** *{yes,no,auto}*

  Include tests requiring the proj library

## SEE ALSO

\* osm2pgsql website (https://osm2pgsql.org) \* osm2pgsql manual (https://osm2pgsql.org/doc/manual.html)
