Ability to specify tests stored in remote git repos
Our tests are split into:
- Miscellaneous / integration tests, stored at fsl/pyfeeds-tests>
- Unit tests stored in project repositories, e.g. fsl/basisfield>
The project unit tests are currently only executed when the project is built, but ideally should be additionally executed whenever the integration tests are run, as this will allow us to catch potential bugs which have been introduced into project dependencies since the project was last built.
So I propose that pyfeeds run [options] testDir [testDir ...]
should allow testDir
to be a URL to a git repository. When passed a git repository as input, pyfeeds
should clone the repository to a temporary location, and add that location to the list of test search directories.
Note that a standard FSL installation contains a checkout of the git repository for each project in $FSLDIR/src/
, however test scripts/data may have been stripped out of these directories, hence the need to [re-]clone the source repository in order to access the tests.