by mristin · 5y ago · 0 comments
(I'm one of the authors of icontract-hypothesis.)
I find contracts personally super useful as I can express a lot of relationships in the code trivially and have them automatically verified. For example, when this input is None, then that output needs to be positive. Or if you dele the item it should not exist in this and that registry, and some related other items should also not exist any more.
My email is in the commits of the repository, feel free to contact me and we can have a chat if you are interested in a larger picture and more details.
I tend to limit myself to simple contracts and do table tests for the complex cases to reap the benefits of the both approaches.
Do you have in mind some technique to turn contracts into tests or tests into contracts automatically, in order to close the gaps in quality control?