Tests

System requirements

  • Git

  • Docker >= 22

Testing setup

In your virtual environment:

  1. Install development requirements (Ubuntu or Windows)

  2. Install data fixtures:

    git clone --depth=1 https://github.com/qgis/QGIS-Training-Data.git ./tests/fixtures/qgisdata
    python -m pip install -U gisdata -t ./tests/fixtures
    
  3. Launch PostGIS container:

    docker compose -f "tests/container/docker-compose.dev.yml" up -d --build
    

Try it out on test dataset

dicogis-cli inventory --verbose --input-folder tests/fixtures

Run tests suite

pytest