Skip to content

Testing & CI Policy

Install libgeos_c first (see the installation guide).

Running tests locally

nimble test              # run all tests

Sub-task shortcuts:

nimble testGeometries    # geometry tests (Point, LineString, Polygon, Multi*, LinearRing)
nimble testSerializers   # WKT, WKB, GeoJSON round-trips
nimble testPredicates    # spatial predicates
nimble testSpatialOperations  # spatial operations
nimble testPreparedGeom  # prepared geometry tests
nimble testEdgeCases     # edge-case tests

Test files MUST be named t_*.nim under tests/ (or its test_*/ subdirectories) — the nimble findTestFiles helper skips anything else, so misnamed tests silently never run under nimble test.

CI policy

  • CI runs on every PR and every push to main.
  • All test suites execute on each run: core, geometries, serializers, predicates, spatial operations, edge cases.
  • Documentation build is verified in CI.
  • PRs must pass CI on at least one supported platform (Ubuntu or macOS) before merge.
  • Windows and Nim devel failures are non-blocking (informational only).

Contributing changes

  1. Fork the repository and create a feature branch from main.
  2. Make your changes — ensure the code compiles and follows the code style.
  3. Run tests locally before submitting.
  4. Open a pull request against the main branch.

Guidelines: - New features should include tests covering the new functionality. - Bug fixes should include a regression test that fails before the fix and passes after. - Keep CHANGELOG.md updated for every user-visible change (Keep a Changelog format).