Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop approach to run PROJ.4 unit tests #9

Open
dr-jts opened this issue Mar 16, 2018 · 2 comments
Open

Develop approach to run PROJ.4 unit tests #9

dr-jts opened this issue Mar 16, 2018 · 2 comments

Comments

@dr-jts
Copy link
Contributor

dr-jts commented Mar 16, 2018

It would be great to be able to run all or most of the PROJ.4 unit tests against Proj4J.

It appears that the current testing framework for PROJ.4 uses a custom utility called GIE. This reads a custom format originating in a test utility called GIGS. There are a LOT of unit tests.

Possible approaches:

  1. Port the unit tests to a format which Proj4J can run. This should be a declarative format, for maximum usabliy and ease of maintenance. The current MetaCRS CSV format is too hard to work with IMHO - a better format should be devised. This will also require a transpiler from the GIE format to the Proj4J format.

  2. Develop a test runner that can handle the GIGS/GIE format directly. Hopefully this won't be too hard. The advantage here is that it will be easier to keep the tests in synch with PROJ.4

Note that it is very likely that not all PROJ4 tests will run in Proj4J, due to differences in supported functionality. There will need to be a way to indicate which tests should not be run (or transpiled)

@scaddenp
Copy link
Contributor

Would be improvement if could just a run a version of proj4js tests.

@barthanssens
Copy link
Contributor

So basically a port of https://github.com/OSGeo/PROJ/blob/master/src/apps/gie.cpp , or rather a (pre)processor that converts the GIE test files into JUnit tests ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants