r.geomorphon: Add tests for parameter validation, outputs, flags, and comparison modes#6981
r.geomorphon: Add tests for parameter validation, outputs, flags, and comparison modes#6981sumitchintanwar wants to merge 5 commits intoOSGeo:mainfrom
Conversation
924863a to
39402d7
Compare
|
@wenzeslaus I have added the tests for r.geomorphon. Review appreciated. |
|
Hey @sumitchintanwar I’m interested in working on the parson-based JSON rewrite itself (keeping output semantics identical), so wanted to make sure efforts don’t overlap. Happy to coordinate if needed. |
See #6924, I think he already did the refactor. |
Hwy @sakirr05, this PR is focused specifically on test coverage only. It doesn't address the JSON refactor from #6970. Testing: I am currently not working on the JSON refactor. The tests I added should actually be helpful for validating the parson-based rewrite when you implement it. They ensure the modules behaviour remains consistent before/after the refactor. Feel free to proceed with the parson work. No overlaps here. |
petrasovaa
left a comment
There was a problem hiding this comment.
These are mostly smoke tests, still useful, but they don't test resulting values in any way and so if anything changes in the algorithm, they won't capture that. Also please add a test for the profileformat parameter that's relevant for the JSON.
|
@wenzeslaus @petrasovaa, a quick review and any feedback would be appreciated. The latest commit contains the finalised, reference-based tests using the NC dataset, which should now serve as proper regression tests. |
Description
This PR significantly strengthens the test suite for
r.geomorphonby adding reference-data based validation using the NC dataset (nc_spm_full_v2beta1).Tests now validate algorithm behavior by comparing outputs against reference data, improving regression detection and ensuring stability across parameters, flags, and modes.
Earlier smoke-style checks (mean, stddev bounds and consistency checks) have been replaced with reference comparisons.
Changes
forms,ternary,intensity,elongation)-e) and meter units (-m)anglev1,anglev2,anglev2_distance)Test Results
Test coverage increased from 2 to 12.
All tests pass successfully.
Notes: