Skip to content
This repository has been archived by the owner on Apr 2, 2022. It is now read-only.

Latest commit

 

History

History
39 lines (24 loc) · 1.4 KB

README.md

File metadata and controls

39 lines (24 loc) · 1.4 KB

ARCHIVED!

This has been integrated into https://github.com/georust/geo/tree/main/jts-test-runner

JTS Test Runner

A tool used to compare the behavior of GeoRust/geo to the venerable JTS.

In particular, the contents of ./resources/testxml were copied from JTS's test files.

# Run only the centroid tests
let mut runner = TestRunner::new().matching_filename_glob("*Centroid.xml");
runner.run().expect("test cases failed");

# Run all tests
let mut runner = TestRunner::new();
runner.run().expect("test cases failed");

GeoRust is Incomplete

Not all tests are handled, in part because JTS supports a lot of things GeoRust/geo doesn't support (yet!).

For some things which are supported, GeoRust/geo might diverge. This is probably a bug, and should be investigated - precisely what this test runner is built to find!

Parsing New Test Case Input

Parsing test case input happens in OperationInput.

Each type of test (Centroid, ConcaveHull, etc.) has different inputs, so will need to be handled slightly differently.

Running New Test Cases

Evaluating GeoRust/geo behavior against the expectations in the test case input happens in TestRunner#run