-
Notifications
You must be signed in to change notification settings - Fork 7
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
[Discussion]: Unifying tests for SegmentationExtractor? #189
Comments
I'm all for code reduction, and it looks like it could do that in our testing suite. Better organization of tests is also always good, but having the tests to begin with is more important. This is also always something we can come back to but wouldn't give it highest priority |
@weiglszonja if you are finding yourself wanting to write the same test for multiple objects, I think it's a good idea, particularly if those objects have the same parent. If you name the method to start with |
thanks for the input, I'll keep this in my backlog to revisit later. |
This makes sense to me, check: roiextractors/tests/test_io.py Lines 89 to 108 in 66899bf
And |
While working on #188, and #187 I realised it might be useful to have tests for methods defined in
SegmentationExtractor
that can be reused when testing other segmentation extractors.The idea for instance, if we wanted to test
set_times
which is defined inSegmentationExtractor
, we wouldn't necessarily have to implement a test forset_times
in every segmentation extractors that we are creating unittests for in the future.I was thinking about something like this:
Which then can be used as TestCase for the other segmentation extractors and tests reused?
@CodyCBakerPhD @h-mayorquin
Let me know what you think about it, maybe dummy idea .
The text was updated successfully, but these errors were encountered: