[Insight-developers] ITK Regression tests & 'expected' exceptions

Bill Lorensen bill.lorensen at gmail.com
Mon Feb 8 13:44:02 EST 2010


It is not an error if you catch the exceptions. We do this frequently.
I think I misunderstand your question.

Bill

On Mon, Feb 8, 2010 at 1:08 PM, kent williams
<norman-k-williams at uiowa.edu> wrote:
> In an effort to increase coverage on the Code/Review/itkTransform
> Reader/Writer, I added some expected exceptions -- like calling Update()
> without setting filename, and asking it to read a file with an unrecognized
> file extension.
>
> It appears that if there's an exception during testing, it's counted as an
> error.  Should it really be an error to test exception handling?
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-developers
>


More information about the Insight-developers mailing list