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

COMP: fix several of the tests #142

Merged
merged 2 commits into from Sep 23, 2020
Merged

COMP: fix several of the tests #142

merged 2 commits into from Sep 23, 2020

Conversation

pieper
Copy link
Contributor

@pieper pieper commented Sep 22, 2020

Several of these tests relied on data previously provided
by the Slicer core repository. Since Slicer moved to
using the ExternalData processin CMake, these
files were no longer available and these tests broke.

This fix adds a few small testing data files to this repository
and configures the tests to use them.

Based on community discussion, another option could have been
to use the ExternalData methodology in this extension. However
since other extensions in the Slicer ecosystem do not use this
method some new methods would need to be debugged.

#130

With this commit, one file of 205k is added, which is
minor and will be consistent with other data files already
in the repository. It is used for testing CLIs. For the
more extensive self tests data is downloaded so they
do not need to be added to the repository.

Several of these tests relied on data previously provided
by the Slicer core repository.  Since Slicer moved to
using the ExternalData processin CMake, these
files were no longer available and these tests broke.

This fix adds a few small testing data files to this repository
and configures the tests to use them.

Based on community discussion, another option could have been
to use the ExternalData methodology in this extension.  However
since other extensions in the Slicer ecosystem do not use this
method some new methods would need to be debugged.

#130

With this commit, one file of 205k is added, which is
minor and will be consistent with other data files already
in the repository.  It is used for testing CLIs.  For the
more extensive self tests data is downloaded so they
do not need to be added to the repository.
@pieper pieper requested a review from ljod September 22, 2020 19:54
Copy link
Member

@ljod ljod left a comment

Choose a reason for hiding this comment

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

Hi Steve I see one "${DTI_BASELINE}/helix-DTI.nhdr" in the scalar measurements test. All others are in DATADIR. Is this a typo?

@pieper
Copy link
Contributor Author

pieper commented Sep 23, 2020

Hi Steve I see one "${DTI_BASELINE}/helix-DTI.nhdr" in the scalar measurements test. All others are in DATADIR. Is this a typo?

Good point, I'll change to use DATADIR consistently.

Copy link
Member

@ljod ljod left a comment

Choose a reason for hiding this comment

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

Thanks!

@ljod ljod merged commit f91fc83 into master Sep 23, 2020
@pieper pieper deleted the fix-test-data branch September 24, 2020 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants