Skip to content

Conversation

@jhlegarreta
Copy link
Member

Exercise the Set/Get NumOfSigmas methods, and perform regression tests
for the m_MeanAmp, m_SigmaAmp, and m_Threshold ivars to make exercising
their Get macros relevant.

Modify the CMakeLists.txt to accept the new test input values and the
expected values for the class regression tests.

std::cerr << "Error in GetThreshold()" << std::endl;
std::cerr << "Expected: " << expectedThreshold << ", but got: "
<< computedThreshold << std::endl;
return EXIT_FAILURE;
Copy link
Collaborator

@phcerdan phcerdan May 31, 2017

Choose a reason for hiding this comment

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

Can you instead of exiting the test immediately, use a variable: bool testPassed = true; And then return EXIT_FAILURE or SUCCESS based on that variable? The good thing about this is that all parts of the test are executed, so we can correct it all at once, or have a more general idea what's going on.

See for example: https://github.com/phcerdan/ITKIsotropicWavelets/blob/0506972375509bfaf5b228ee108477044c6fcd2d/test/itkHeldIsotropicWaveletTest.cxx#L80

Exercise the Set/Get NumOfSigmas methods, and perform regression tests
for the m_MeanAmp, m_SigmaAmp, and m_Threshold ivars to make exercising
their Get macros relevant.

Modify the CMakeLists.txt to accept the new test input values and the
expected values for the class regression tests.
@jhlegarreta jhlegarreta force-pushed the IncreasePhaseAnalysisSoftThresholdImageFilterCoverage branch from 6b609a3 to c688023 Compare June 1, 2017 15:35
@jhlegarreta
Copy link
Member Author

@phcerdan Done ! Also took advantage to rebase after latest merges.

@phcerdan
Copy link
Collaborator

phcerdan commented Jun 2, 2017

Thanks!

@phcerdan phcerdan merged commit 43502a3 into InsightSoftwareConsortium:master Jun 2, 2017
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.

2 participants