vision icon indicating copy to clipboard operation
vision copied to clipboard

Add unit tests

Open andrewda opened this issue 8 years ago • 7 comments
trafficstars

andrewda avatar Sep 20 '17 05:09 andrewda

What would the tests look like, exactly?

snowsignal avatar Sep 20 '17 14:09 snowsignal

@andrewda lol, what he said 😂

SUPERCILEX avatar Sep 20 '17 15:09 SUPERCILEX

Making sure cv_utils.py functions work as intended, and maybe abstracting out some more methods and testing those. I basically want to make sure it works on the low-level with certain images.

andrewda avatar Sep 20 '17 19:09 andrewda

Right now we test that the output is what we expect, which is good and all, but making sure the individual steps work would be even better so we know what breaks when it breaks.

andrewda avatar Sep 20 '17 19:09 andrewda

Oh, K. Yeah, that SGTM.

SUPERCILEX avatar Sep 20 '17 19:09 SUPERCILEX

I think we should use the unittest module for testing. I've used it before, and it's very complete and surprisingly easy to use.

snowsignal avatar Jan 31 '18 17:01 snowsignal

Yep. The problem right now is that the way this program is organized unit tests won't really work. We'll have to refactor quite a bit to make it all testable.

andrewda avatar Jan 31 '18 17:01 andrewda