Justin Deoliveira wrote:
With the exception of a select few I do not expect many geotools developers to actually build geoapi. Which would mean that the tests that get moved out would be run less often which imho would decrease their effectiveness.

I think the idea is that either,
- we configure up our FactorySPI system so that GeoAPI can run the tests with our implementation, problem is it will be hard as a test writer to indicate what is broken (imagine the failure: "Expected 3 but was 4"), you can do it "Coordinate System Axis for 4326 expected 2 but was 3") - we could also subclass the tests, in the setup method provide them with the factory instances they need to run and then stand back..same approach used by MemoryDataStore and PropertyDataStore for a common test fixture.

I could imagine using this for some data objects (like Name in feature.type), but not for much else unless a fixture was provided with the tests (like Name in util).

Interesting problems, one good thing would come of this - I have not had great success in communicating with Javadocs thus far - test cases are a bigger stick.
Jody


-Justin

Martin Desruisseaux wrote:
Bryce L Nordgren a écrit :

There's significant opportunity to create resuable unit tests for the
GeoAPI geometry interfaces to determine implementation compliance and
correctness. This potential presumably exists for other GeoAPI modules as well. For now, let's keep it simple: should the geometry tests live in the
GeoTools project, the GeoAPI project, or in a third project?


I would like a test suite in the GeoAPI project, if we can write it abstract enough so that it doesn't contains any explicit reference to any implementation.

If we can find volunter time, we may try to move some Geotools tests from the referencing module (at least the parts that do not involve any geotools-specific API) as a proof of concept.


See page:
http://docs.codehaus.org/display/GEOTOOLS/Test+Plan+for+JTS+Geometry



Thanks for that page. Its look like it could apply to other module like CRS also.

    Martin.


-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid7521&bid$8729&dat1642
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel






-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid7521&bid$8729&dat1642
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to