Skip to content

switch for prefer-gdal config in unit tests and integration tests  #257

Open

Description

@vpipkt

CI and test environments should have GDAL available to successfully test those code paths, but we also need to test cases where:

  • GDAL is not available
  • GDAL is not preferred

It would be nice to run tests like in RasterSourceSpec File RasterSource should / interpret no scheme as file:// with and without config rasterframes.prefer-gdal set to both true and false to exercise all those code paths. #169 was ultimately very hard to debug and test because the failing code path only happened when GDAL was not available.

It would also be good to be able to test around conditions like

doNotPreferGdal()
RasterSource(new URI("vsi://vsicurl/https://host.com/assets/file.tif")) should throw

This issue would be closed by demonstrating a pattern for tests like the above and enabling it in relevant parts of the test suites.

Activity

  1. added this to the 0.8.2 milestone on Aug 7, 2019
  2. modified the milestones: 0.8.2, 0.8.3 on Sep 23, 2019
  3. modified the milestones: 0.8.3, 0.8.4 on Oct 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions