Skip to content

Explore alternative solutions to dynamically determining paths to data needed for automated testing #570

@robertbartel

Description

@robertbartel

As discussed in some comment threads in #566 (like this one), attempting to run some of DMOD tests will fail the code was not obtained by cloning the repo via Git. This is because Git-based functionality is utilized as a step to determining the correct path for testing files.

This approach was adopted because it satisfied two requirements:

  1. avoiding use of absolute paths
  2. tests could be executed from any working directory within the repo directory structure

The reason the first item is required is fairly clear, but I don't remember exactly why the second is. I believe it has to do with the way certain test tools (perhaps our tests scripts also) run tests, and also the way certain IDEs execute tests when run through their interface.

In the interests of compatibility, we should explore whether there is an alternative, more general method that still satisfies our current needs with respect to automated testing.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestmaasMaaS Workstream

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions