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

i.biomass: added test file for i.biomass module #4962

Merged
merged 10 commits into from
Feb 10, 2025

Conversation

jayneel-shah18
Copy link
Contributor

This PR introduces a suite of tests for the i.biomass GRASS GIS module, covering a range of scenarios, including functionality validation, property testing, edge cases, and performance evaluation.

Key updates in this PR include:

  • Functionality: Verify output raster existence and dimensions.
  • Properties: Test linearity and latitude dependency.
  • Edge Cases: Validate behavior with zero and extreme input values.
  • Performance: Test large-scale processing.

Test Case Additions:

  • Basic Functionality:

    • Validate the creation and existence of the biomass output raster.
  • Advanced Properties:

    • Linearity: Verify output scales proportionally with input.
    • Latitude Dependency: Ensure biomass values vary reasonably with latitude.
  • Edge Cases:

    • Handle all-zero input rasters.
    • Test extreme values for all parameters.
  • Performance:

    • Assess processing of large input rasters.

@github-actions github-actions bot added Python Related code is in Python module imagery tests Related to Test Suite labels Jan 18, 2025
@neteler neteler requested a review from YannChemin January 20, 2025 09:54
Copy link
Contributor

@petrasovaa petrasovaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test functions can be executed in undefined order, so in the setUpClass you create the initial inputs, but the individual test functions modify them, so make sure that's not going to be a problem.

@petrasovaa petrasovaa merged commit 9f9be39 into OSGeo:main Feb 10, 2025
27 checks passed
@github-actions github-actions bot added this to the 8.5.0 milestone Feb 10, 2025
@jayneel-shah18 jayneel-shah18 deleted the i.biomass_tests branch February 10, 2025 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
imagery module Python Related code is in Python tests Related to Test Suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants