ANTsX / ANTsPy

A fast medical imaging analysis library in Python with algorithms for registration, segmentation, and more.
https://antspyx.readthedocs.io
Apache License 2.0
586 stars 161 forks source link

ENH: Verbose tests #639

Closed cookpa closed 1 month ago

cookpa commented 1 month ago

Print status of individual tests and trace system errors on exit.

cookpa commented 1 month ago

Example output

Running utils tests
test_abp_n4 (__main__.TestModule_bias_correction.test_abp_n4) ... ok
test_abp_n4_example (__main__.TestModule_bias_correction.test_abp_n4_example) ... ok
test_n3_bias_field_correction (__main__.TestModule_bias_correction.test_n3_bias_field_correction) ... ok
test_n3_bias_field_correction_example (__main__.TestModule_bias_correction.test_n3_bias_field_correction_example) ... ok
test_n4_bias_field_correction (__main__.TestModule_bias_correction.test_n4_bias_field_correction) ... ok
test_n4_bias_field_correction_example (__main__.TestModule_bias_correction.test_n4_bias_field_correction_example) ... ok
test_merge_channels (__main__.TestModule_channels.test_merge_channels) ... ok
test_crop_image_example (__main__.TestModule_crop_image.test_crop_image_example) ... ok
test_crop_indices_example (__main__.TestModule_crop_image.test_crop_indices_example) ... ok
test_decrop_image_example (__main__.TestModule_crop_image.test_decrop_image_example) ... ok
test_denoise_image_example (__main__.TestModule_denoise_image.test_denoise_image_example) ... ok

Much easier to see what's going wrong.

coveralls commented 1 month ago

Coverage Status

coverage: 81.148%. remained the same when pulling b75cf75a8f17f788eae845cdc782b4a8380592b8 on verbose_tests into 3b5383eea5661ded16d9d0916548a94aada0b96e on master.