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

georust/jts-test-runner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages