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

ENH: Verbose tests #639

Merged
merged 2 commits into from
May 18, 2024
Merged

ENH: Verbose tests #639

merged 2 commits into from
May 18, 2024

Conversation

cookpa
Copy link
Member

@cookpa cookpa commented May 18, 2024

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

@cookpa
Copy link
Member Author

cookpa commented May 18, 2024

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
Copy link

Coverage Status

coverage: 81.148%. remained the same
when pulling b75cf75 on verbose_tests
into 3b5383e on master.

@cookpa cookpa merged commit cd2a4ac into master May 18, 2024
2 checks passed
@cookpa cookpa deleted the verbose_tests branch May 18, 2024 23:50
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